debugger
debugger 语句调用任何可用的调试功能,例如设置断点。 如果没有调试功能可用,则此语句不起作用。
语法
debugger;
示例
规范
Specification | Status | Comment |
---|---|---|
ECMAScript (ECMA-262) Debugger statement |
Living Standard | |
ECMAScript 2015 (6th Edition, ECMA-262) Debugger statement |
Standard | |
ECMAScript 5.1 (ECMA-262) Debugger statement |
Standard | Initial definition |
ECMAScript 3rd Edition (ECMA-262) Debugger statement |
Standard | |
ECMAScript 1st Edition (ECMA-262) Debugger statement |
Standard | Only mentioned as reserved word. |
浏览器兼容
BCD tables only load in the browser