Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to totally ignore 'debugger' statement in chrome?

'never pause here' can not work

before

after I continue:

after

still paused

like image 225
chen Avatar asked Aug 19 '17 05:08

chen


People also ask

How do I remove debug from browser?

f8 => for pass to another debugger You should delete the debugger when it's not being used. It should only be used in the lines of code you are currently testing.... There's no reason to have it in your code when you're not testing the code directly before or after the debugger.

How do I disable paused Debugger in Chrome?

It seems counterintuitive, but there are a couple of reasons this is really useful for those debugging sessions. TL;DR Right click in the area where you'd normally set breakpoints, select “never pause here” and you can prevent the debugger from stopping on exceptions or debugger statements.

How do I remove Debugger from inspect?

Just press Ctrl + F8. Alternatively you can click the related button next to the buttons controlling the debugger. This way the execution won't stop.


1 Answers

To totally ignore all breakpoints in Chrome, you must do as follows:

  1. Open your page in the Chrome browser.

  2. Press F12 or right-click on the page and select Inspect.

  3. In the Source panel, press Ctrl+F8 to deactivate all breakpoints. (or: At the top-right corner, select deactivate breakpoints.)

All breakpoints and debugger statements will be deactivated.

I tested it in Chrome 79.0.3945.88 (64-bit) and I found that the debugger statement is ignored.

Screenshot showing the effect of deactivated breakpoints on debugger statements

like image 102
Iman Bahrampour Avatar answered Sep 22 '22 03:09

Iman Bahrampour