[英]Shortcut to add multiple breakpoints in chrome?
考虑到我有100行代码,我想在每一行都有断点,有没有像点击第一行向下滚动到第100行并使用shift-click或control-click来选择其间的所有行来应用断点?
In chrome you can try to use the debug
keyword. 在chrome中,您可以尝试使用debug
关键字。
function debug(fn) { [Command Line API] }
For example, paste this code into the Chrome developer console: 例如,将此代码粘贴到Chrome开发者控制台中:
function hw() {
alert('hello world');
}
debug (hw);
hw();
It will create a virtual file and start with a breakpoint at your function. 它将创建一个虚拟文件,并在您的函数中以断点开头。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.