JavaScript debugger statement
JavaScript Statements Reference Manual
Examples
Open debugger, the code prior to the implementation of the third line termination.
var x = 15 * 5;
debugger;
. Document.getElementbyId ( "demo") innerHTML = x;
debugger;
. Document.getElementbyId ( "demo") innerHTML = x;
try it"
Definition and Usage
debugger statement to stop the implementation of JavaScript, and calls (if available) debugging functions.
Statement is similar to using a debugger to set breakpoints in the code.
Usually, you can turn on debugging tools by pressing F12, and select the "Console" in the Debug menu.
Note: If the debugging tool is not available, debugging statements will not work.
More JavaScript debugging information, and in case the browser does not support how to activate the browser debugging tools, please consult our JavaScript debugging tutorials.
Browser Support
Statements | |||||
---|---|---|---|---|---|
debugger | Yes | Yes | Yes | Yes | Yes |
grammar
debugger;
technical details
JavaScript version: | 1.0 |
---|
Related Pages
JavaScript Tutorials: JavaScript debugging
JavaScript Statements Reference Manual