如何阻止 Chrome 进入调试模式?

如果调试窗口打开,即使没有设置断点,调试器也会开始单独命中行。

我已经尝试使用“停用断点”按钮,它没有什么不同,如果它是打开或关闭。

这在任何网站上都会发生。

180212 次浏览

You've accidentally set "Pause on Exceptions" to all/uncaught exceptions.

Go to the "Sources" tab. At the top right hand side, toggle the button that looks like the pause symbol surrounded by a hexagon (button on the far right) until the color of the circle turns black to turn it off.

You have multiple Google Chrome browser tabs open for the same URL and developer toolbar.

In some other tab, you have set breakpoints which are showing up when you are debugging in the current tab.

Solution: Close the developer toolbar in the other tab or the tab itself.

There are a couple of reasons for this:

  1. You've toggled on the Pause On Caught Exceptions button. So, toggle it off.

    Enter image description here

  2. You've toggled a line (or more) to be paused on exception. So, toggle it off.

    Enter image description here

I have made it working...

Please follow the highlighted mark in the attached image.

Enter image description here

If you were unfamiliar with the tools, it was likely that at some point while in the debugger you toggled a setting that was causing the debugger to stop the application.

I suggest you "Disable all break points":

Enter image description here

Source:

https://javascript.info/debugging-chrome

For anyone that's searching why their chrome debugger is automatically jumping to sources tab on every page load, event though all of the breakpoints/pauses/etc have been disabled.

For me it was the "breakOnLoad": true line in VS Code launch.json config.

Blue dot still persists.

I only had one tab open and debugging off but the blue dot in the HTML Elements tab persisted.

I left clicked on the blue dot, dragged it down and away and it finally disappeared. I cleared browser cache and it finally fixed it.

Press Ctrl+F8 to deactivate breakpoints. It worked for me.

I just added an image for a clear understanding of @liurr90 answer.

enter image description here

  1. Open the dev tools. (Ctrl + Shift + I)
  2. Ctrl + Shift + P
  3. Search for "Do not pause on exceptions" and click it.

enter image description here