ccpizza
ccpizza

Reputation: 31666

How to prevent chrome devtools from stopping on `debugger` keyword?

Is there a way to prevent chrome from stopping on debugger statements while the devtools window is open, and at the same time allow stopping on manually set breakpoints?

The deactivate breakpoints button (⌘/ctrl + F8) disables both the debugger statements and the user breakpoints so it's not really a solution. It would be good to somehow be able to control separately 'code' breakpoints and 'devtools' breakpoints.

Upvotes: 1

Views: 501

Answers (2)

m.hassaballah
m.hassaballah

Reputation: 250

You can use "Never Pause Here" feature. but you need to do it for every line.

Upvotes: 2

snikit
snikit

Reputation: 11

How about two scripts to launch your app , where one script can comment out all the debugger statements and then launch the app ?

If it's that important to you right now.

Upvotes: 0

Related Questions