Chrome Developer Tools: Way to temporarily ignore or disable all debugger keywords

依然范特西╮ 提交于 2020-08-09 06:46:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!