64 javascript debugging firebug breakpoints
我目前正在使用Firebug调试复杂的JavaScript代码.我正在寻找一种方法来停止JavaScript执行,就好像它是一个断断点编程.
例:
instructions ...
degugger.breakpoint(); // the execution stops here as if a breakpoint was
// manually set
other instructions ...
Run Code Online (Sandbox Code Playgroud)
RaY*_*ell 114
您可以使用以下debugger声明:
// your JS code
...
// break here
debugger;
Run Code Online (Sandbox Code Playgroud)
它适用于所有主流浏览器.
| 归档时间: |
|
| 查看次数: |
32134 次 |
| 最近记录: |