debugger
statement
JS Home <<
JS Reference <<
debugger
Debugging statement.
Description
The debugger
statement starts up any available debugging functionality, or does nothing if no debugging functionality available.
Syntax
Signature | Description |
---|---|
debugger; | Starts up any available debugging functionality, or does nothing if no debugging functionality available. |
Parameters
None.
Examples
The code below invokes a debugging tool if functionality available. For instance:-
- If you are on chrome this will be launched when button is clicked and code is run.
- If you have Firebug installed and are on Firefox this will be launched when button is clicked and code is run.
function goDebugger()
{
debugger;
alert('In debugger');
}
goDebugger();
Related Tutorials
JavaScript Advanced Tutorials - Lesson 9 - Any Other Business