最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Can I completely disable 'debugger' in scripts? - Stack Overflow

programmeradmin1浏览0评论

I wanted to see the network log of a third-party web site. (No malicious purposes, just to solve a login problem of a client who is a legitimate user of the web site.) But it seems the developers have put some measure to prevent that. Some dynamically generated function loops 200 times and calls debugger. So, if I open the developer tool, it constantly stops and "Never pause here" does not work either, because its location keeps changing.

I tried all major browsers (Chrome, FF, Edge) and they all stopped. Is there any way temporarily to disable all debugger pause, or a web browser that has a developer tool but ignores that keyword?

I wanted to see the network log of a third-party web site. (No malicious purposes, just to solve a login problem of a client who is a legitimate user of the web site.) But it seems the developers have put some measure to prevent that. Some dynamically generated function loops 200 times and calls debugger. So, if I open the developer tool, it constantly stops and "Never pause here" does not work either, because its location keeps changing.

I tried all major browsers (Chrome, FF, Edge) and they all stopped. Is there any way temporarily to disable all debugger pause, or a web browser that has a developer tool but ignores that keyword?

Share Improve this question edited Oct 27, 2017 at 14:16 Vadim Kotov 8,2848 gold badges50 silver badges63 bronze badges asked Sep 14, 2017 at 1:43 Damn VegetablesDamn Vegetables 12.5k16 gold badges95 silver badges171 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

Chrome's dev tools has a Disable All Breakpoints button which will ignore this.

In IE and Edge you can detach the debugger using the "Disconnect debugger" toggle. It's the 2nd icon from the left of the debugger's mand bar. When disconnected the debugger will ignore all break reasons. I'd open the tools somewhere else, disconnect, and then navigate to the page you wanted to look at.

发布评论

评论列表(0)

  1. 暂无评论