本文介绍了Chrome开发者工具:暂时忽略或禁用所有调试器关键字的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以暂时忽略或禁用所有调试器关键字,然后立即重新启用它们?
Is there a way to temporarily ignore or disable all debugger keywords, but then re-enable them at once?
推荐答案
您可以将debugger
包装在函数中.
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.
这篇关于Chrome开发者工具:暂时忽略或禁用所有调试器关键字的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!