Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between deactivating and disabling a breakpoint in Chrome Dev Tools

Chrome (Version 23.0.1271.101). I'm on OS X, if that even matters.

Why does Chrome have the ability to disable and/or deactivate breakpoints? Is there some power use I am not aware of?

I have noticed that I can disable some breakpoints, then deactivate all. Upon reactivating them, the same disabled ones are disabled. Other than that, what's the purpose of having having the two options?

enter image description here

like image 369
Nick Avatar asked Jan 04 '13 14:01

Nick


People also ask

How do you stop breakpoints in Google Chrome?

Right-click anywhere in the Breakpoints pane to deactivate all breakpoints, disable all breakpoints, or remove all breakpoints. Disabling all breakpoints is equivalent to unchecking each one.

How do I disable debug in dev tools?

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.

How do I remove all breakpoints from the console?

You can right-click on any breakpoints in the Source tab and click on Remove breakpoint or right-click on the right side on Breakpoints section and Remove all breakpoints!


1 Answers

Deactivate Breakpoints turns off the breakpoint functionality. Disable All Breakpoints is a shortcut for marking each breakpoint as disabled.

The difference becomes clearer when you compare Enable All Breakpoints and Activate Breakpoints.

Individual breakpoints can be enabled or disabled through the checkboxes next to each breakpoint.

enter image description here

Disable All Breakpoints unchecks all breakpoints, in effect turning off breakpoint functionality. Deactivate Breakpoints explicitly turns off breakpoint functionality. So these two options have the same effect.

Activate Breakpoints enables breakpoint functionality, preserving the individual breakpoints' enabled/disabled status. Enable All Breakpoints enables each breakpoint, but doesn't turn breakpoint functionality itself on if it has been deactivated.

like image 123
xn. Avatar answered Oct 06 '22 22:10

xn.