Search code examples
javascriptdebuggingpause

How to pause debugger in chrome using javascript?


I find script pause debugger in chrome when ctrl shift I or F12. Thank everybody!


Solution

  • Type debugger; in your js where you want debugger to pause:

    Type debugger Screenshot

    Then load the page while developer tools open.

    Paused Screenshot