简体   繁体   中英

Can I completely disable 'debugger' in scripts?

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?

Chrome的开发工具有一个禁用所有断点按钮,将忽略此按钮。

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 command 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.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM