WebStorm 2020.3 Help

Work with run/debug configurations

To run or debug your code in WebStorm, you can use run/debug configurations. Each run/debug configuration represents a named set of run/debug startup properties. When you perform run, debug, or test operations with WebStorm, you always start a process based on one of the existing configurations using its parameters.

WebStorm comes with a number of run/debug configuration types for the various running, debugging and testing issues. You can create your own run/debug configurations of specific types.

Each run/debug configuration type has its own default settings. Whenever a new run/debug configuration of the respective type is created, it is based on these default settings.

Temporary run/debug configurations

A temporary run/debug configuration is automatically created every time you choose Run <item_name> or Debug <item_name> for an item without a permanent configuration.

Save a temporary configuration as permanent

  • Select the temporary configuration in the Run/debug configurations dialog and click the Save button on the toolbar.

  • Alternatively, select the temporary configuration in the run/debug configuration selector and then click Save <configuration name> Configuration.

    Run/Debug configuration selector: Save configuration

Temporary configurations are marked with semi-transparent icons and are managed the same way as the permanent configurations.

By default, five temporary run/debug configurations are allowed per project, so when you create the sixth configuration, the one created first is removed, and so on. To change this limit, use the Temporary configurations limit field in the Templates page of the Run/debug configurations dialog.

Permanent run/debug configurations

A permanent run/debug configuration is explicitly created for a particular class or method. If there is no permanent configuration for an item, WebStorm automatically creates a temporary configuration for it, when you choose Run <item_name> or Debug <item_name> from the context menu of this class or method.

Run/debug configuration templates

The templates with default run/debug configuration settings are listed in the Run/Debug Configurations dialog under the Templates node. They denote the settings that are used when new run/debug configurations are created.

You can set the default settings for a specific configuration type that will become applicable to any run/debug configuration of this type created later. Changing defaults does not affect the existing run/debug configurations.

The process of editing per-type default configuration settings is described in Change templates of run/debug configurations. The process of creating or editing custom run/debug configurations is described in Create and edit run/debug configurations.

Last modified: 08 March 2021