Paused in debugger in chrome?

后端 未结 16 2097
小鲜肉
小鲜肉 2020-12-22 21:22

When debugging in chrome, the scripts are always paused in the debugger even if there are no break points set, and if the the pause is un-paused, it again pauses itself.

相关标签:
16条回答
  • 2020-12-22 22:04

    There was a syntax error in my for loop. This caused the pause error.

    0 讨论(0)
  • 2020-12-22 22:06

    In my case, I had the Any XHR flag set true on the XHR Breakpoints settings, accessible over the Sources tab within Chrome's dev tools.

    Any XHR Flag in Chrome Dev Tools

    Uncheck it for Chrome to work normally again.

    0 讨论(0)
  • 2020-12-22 22:06

    You can just go to Breakpoints in the chrome developer console, right click and remove breakpoints. Simple.

    0 讨论(0)
  • 2020-12-22 22:06

    This was happening to me. I had a breakpoint on subtree modifications on the body tag, and every time I removed the breakpoints, they would be back after I refreshed. I was so confused, and I even removed all DOM breakpoints, but the phantom body subtree modification breakpoint kept coming back. Eventually, I reloaded the cache, and they disappeared.

    0 讨论(0)
  • 2020-12-22 22:11

    If you navigate to Sources you can see the pauseenter image description here button at the bottom of the DevTools. Basically there are 3 possible pause option in DevTools while debugging js file,

    • Don't pause on exceptions(enter image description here) :

      The pause button will be in grey colour as if "Don't pause on exceptions" is active. enter image description here

    • Pause on all exceptions(enter image description here) :

      The pause button will be in blue colour as if "Pause on all exceptions" is active. enter image description here

    • Pause on uncaught exceptions(enter image description here) :

      The pause button will be in purple colour as if "Pause on uncaught exceptions" is active. enter image description here

    In your case, if you don't want to pause, select Don't pause on exceptions. To select, toggle the pause button till it become greyenter image description here.

    0 讨论(0)
  • 2020-12-22 22:11

    Really silly issue that I ran into that led me here with the debugger; command.: "debugger;" has a watch set on it.

    It caused a page that just said debugger; to appear between every page load.

    The way to disable it is to just right-click said Watch and click "Delete watch expression".

    0 讨论(0)
提交回复
热议问题