1

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.

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

0

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.

5 Comments

That would be an answer to a different question. But let's assume that you are loading an external library that you cannot modify.
well no one puts debugger; in production builds
I only said let's assume, didn't say it's a production build.
See if this helps. answer
Thanks, yes, it lists among others the answer provided by @m.hassaballah.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.