Disable function call to debugger in Chrome Developer Console
Right-click the line number column next to the line that includes the debugger
statement and select Never Pause Here.
Do this for each instance of debugger
.
Unfortunately, I don't think there's a way to disable the debugger
keyword outright, so I understand that this solution is tedious if you have a lot of calls to debugger
, but it's the best we have at the moment. I mentioned to the DevTools team (I'm the DevTools technical writer) the need to be able to disable the debugger
keyword outright.
Update A DevTools engineer also reminded me that we have the Force Resume button. Hold the Resume button then select Force Resume and DevTools ignores all subsequent breakpoints.
If the script is in a separate file, you can also blackbox that script.