A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/statements/debugger below:

debugger · WebPlatform Docs

debugger Summary

Suspends execution.

Syntax
debugger
Examples

This example uses the debugger statement to suspend execution for each iteration through the for loop.

Note – To run this example, you must have a script debugger installed and the script must run in debug mode.Internet Explorer 8 includes the JavaScript debugger. If you are using an earlier version of Internet Explorer, see How to: Enable and Start Script Debugging from Internet Explorer.

for(i = 1; i<5; i++) {
    
    Debug.write("loop index is " + i);
    
    debugger
 }
Remarks

You can place debugger statements anywhere in procedures to suspend execution. Using the debugger statement is similar to setting a breakpoint in the code.

The debugger statement suspends execution, but it does not close any files or clear any variables.

Note – The debugger statement has no effect unless the script is being debugged.

See also Other articles Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4