Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

Bypass_Debugger

> 编程语言
Open source

Bypass无限debugger

100 stars0 likes1 views
WebsiteGitHub

About

Bypass无限debugger

Bypass_Debugger

Intro

该脚本可bypass:

  1. new Function --> debugger
  2. constructor --> debugger
  3. eval --> debugger

注意事项

  1. 本脚本在油猴里的运行时期为document-start。

  2. 如果发现hook后打开F12依然存在debugger:

  • 建议开着F12在刷新一次。
  • 请检查油猴或其他插件加载的脚本是不是做了同样的操作,例如重写Function等等,个人建议使用时除不是自己写的脚本(指没有做本脚本同样动作的)都关闭。
  1. 我的这段Bypass Debugger脚本,目前已知的只有以下这两种情况不能被bypass掉:
javascript
var dbg = function (){
    debugger;
}
setInterval(dbg,3000);

以及直接将debugger写在script当中的:

以上这两种设条件断点就能过(如果不知道怎么设置条件断点的可以去看一下我之前写的反调试与反反调试一文),或者替换也行,不需要hook的,所以我就暂时没去管这个。

  1. 如果hook后站点js出现异常,是因为eval的作用域问题导致的,此时可以考虑将chrome的来自eval或控制台的匿名脚本设置打开:

现在就能解决掉由eval和Function引起的无限debugger。但如果你不想忽略掉来自eval和Function的匿名脚本,可以考虑使用Bypass_Debugger(备用),该脚本只会hook Function和Function.prototype.constructor,并不会影响到eval,所以如果目标网站是由eval引起的debugger就没办法了。

Contact

如有bug或其他问题可提交issues。

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言