问题
Is there a way to temporarily ignore or disable all debugger keywords, but then re-enable them at once?
回答1:
You could wrap your debugger
in a function.
var d = function() {
debugger; // comment-out as needed
};
d();
There's also the Never pause here feature for skipping over individual lines of code (although this question was about batch disabling debugger statements). Right-click on the code line column to access it.
回答2:
Workaround is just to comment them out using “Find and replace all” debugger;
keywords.
That feature or way to temporarily disable debugger keywords probably won't be happening too.
You can read that through this Chrome bug post
来源:https://stackoverflow.com/questions/36024166/chrome-developer-tools-way-to-temporarily-ignore-or-disable-all-debugger-keywor