WebStorm 2019.2 Help

Stepping through the program

When a breakpoint is reached the Debug tool window becomes active and enables you to get control over the program's execution. For this purpose, you can use the Run menu commands, or the icons on the stepping toolbar of in the Debug tool window.

Each stepping action advances the execution point to the next execution location, depending on the action you choose.

Stepping through the program

  • Use the buttons in the stepping toolbar of the Debug tool window.

  • On the main Run menu, or on the editor's context menu, choose one of the stepping commands

  • Use the keyboard shortcuts.

Choosing a method to step into (Smart Step Into)

When you reach a line with calls of several methods, you can choose a method you want to step into.

  1. Click The Smart step into button on the stepping toolbar, or press Shift+F7, or select Run | Smart Step Into from the main menu.

  2. In the editor, select the method to step into using the right and left arrow keys.

    To exit the Smart Step Into mode, click Escape.

Suppressing stepping into

You can create a list of scripts that you want the debugger skip while stepping through the program.

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), click Debugger under Build, Execution, Deployment, and then click Stepping. The Debugger. Stepping page opens.

  2. To skip all library scripts, select the Do not step into library scripts checkbox.

  3. To suppress stepping into some specific scripts, select the Do not step into scripts checkbox and create a list of such scripts using the toolbar buttons.

Tips and tricks

  • The Force Step Into command icons debugger actions force step into svg enables you to step into a method of a class not to be stepped into.
    The classes, stepping into which is suppressed, are specified on the Debugger. Stepping page of the Settings/Preferences dialog box.

  • The Force Step Over command icons debugger actions force step over svg enables you to jump over the method call ignoring the breakpoints on the way.

  • The Force Run to Cursor command icons debugger actions force run to cursor svg enables you to jump to the cursor position ignoring existing breakpoints on the way.

Last modified: 17 September 2019

See Also