debugger statementS2C Home « Statements « 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 have Firebug installed on Firefox this will be launched when code is run.


function goDebugger()
{
  debugger;
  alert('In debugger');
} 
goDebugger();

Press the button below to action the above code:


Related Tutorials

JavaScript Advanced Tutorials - Lesson 9 - Any Other Business

go to home page Homepage go to top of page Top