If the debugging window is open, the debugger starts hitting lines by itself even though there are no set breakpoints.
I have tried using the "Deactivate breakpo
I have made it working...
Please follow the highlighted mark in the attached image.
You've accidentally set "Pause on Exceptions" to all/uncaught exceptions.
Go to the "Sources" tab. At the bottom toolbar, toggle the button that looks like the pause symbol surrounded by a circle (4th button from the left) until the color of the circle turns black to turn it off.
There are a couple of reasons for this:
You've toggled on the Pause On Caught Exceptions button. So, toggle it off.
You've toggled a line (or more) to be paused on exception. So, toggle 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.
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":
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.