PyCharm 2017.2 Help

Run/Debug Configurations

Run | Edit Configurations

Use this dialog box to create, edit, or remove run/debug configurations, and configure the default settings that will apply to all newly created run/debug configurations.

The default settings are grouped under the Defaults node in the left-hand part of the dialog box.

Click here for the description of the options that are common for all run/debug configurations.

For some of the run/debug configurations, PyCharm supports viewing output in Log files. Find the detailed information in the corresponding run/debug configuration dialogs.

Find the descriptions of specific run/debug configurations in the following pages:


/help/img/idea/2017.2/add.png Alt+Insert Click this button to add a new configuration to the list.
/help/img/idea/2017.2/delete.png Alt+Delete Click this button to remove the selected configuration from the list.
/help/img/idea/2017.2/copy.gif Ctrl+D Click this button to create a copy of the selected configuration.
/help/img/idea/2017.2/settings.png Edit defaultsClick this button to edit the default configuration templates. The defaults are used for newly created configurations.
/help/img/idea/2017.2/arrowUp.png or /help/img/idea/2017.2/arrowDown.png Alt+Up or Alt+Down Use these buttons to move the selected configuration or folder up and down in the list.

The order of configurations or folders in the list defines the order in which configurations appear in the Run/Debug drop-down list on the main toolbar.

folder Move into new folder / Create new folder Use this button to create a new folder.

If one or more run/debug configurations are in focus, the selected run/debug configurations are automatically moved to the newly created folder. If only a category is in focus, an empty folder is created.

Move run/debug configurations to a folder using drag-and-drop, or the /help/img/idea/2017.2/arrowUp.png /help/img/idea/2017.2/arrowDown.png buttons.

/help/img/idea/2017.2/sortAlphabetically.png Sort configurations Click this button to sort configurations in alphabetical order.

Common options

NameIn this text box, specify the name of a new run/debug configuration. This field is not available for the default run/debug configurations.
Defaults This node in the left-hand pane contains the default run/debug configuration settings. Select configuration to modify its default settings in the right-hand pane. The defaults are applied to all newly created run/debug configurations.
Share Select this check box to make the run/debug configuration available to other team members.

The shared run/debug configurations are kept in separate xml files under .idea\runConfigurations folder, while the local run/debug configurations are kept in the .idea\workspace.xml.

This check box is not available when editing the run/debug configuration defaults.

Before launchUse the controls in this area to specify which tasks must performed before applying the run/debug configuration. The tasks are performed in the order they appear in the list. The following options are available:
  • /help/img/idea/2017.2/add.png (Alt+Insert): click this icon to add a task to the list. Select one of the following task types:
    • Run External tool: select this option to run an application that is external to PyCharm. In the dialog that opens, select the application(s) that you want to run. If the required application is not defined in PyCharm yet, add its definition (for details see Configuring Third-Party Tools and External Tools).
    • Run Another Configuration: select this option to execute one on the existing run/debug configuration. Choose a configuration to execute from the dialog box that opens.
    • Compile TypeScript: select this option to run the built-in TypeScript compiler and thus make sure that all the changes you made to your TypeScript code are reflected in the generated JavaScript files. In the TypeScript Compile Settings dialog that opens, select or clear the Check errors checkbox to configure the behaviour of the compiler in case any errors are detected:
      • If the Check errors checkbox is selected, the compiler will show all the errors and the run configuration will not start.
      • If the Check errors checkbox is cleared, the compiler will show all the detected errors but the run configuration still will be launched.
    • Run File Watcher: select this option to run the File Watchers that are active in the current project. For more information, see File Watchers.
    • Generate CoffeeScript Source Maps: select this option to generate source maps for your CoffeeScript sources. In the dialog that opens, specify the path to the folder where CoffeeScript files will be generated. For more information, see CoffeeScript.
    • Run Remote External tool: select this option to run a remote SSH external tool. In the dialog that opens, specify the SSH external tool that you want to run. For more information, see Remote SSH External Tools.
  • /help/img/idea/2017.2/delete.png (Alt+Delete): click this icon to remove the selected task from the list.
  • /help/img/idea/2017.2/edit1.png (Enter): click this icon to modify the selected task. Edit the task settings in the dialog that opens.
  • /help/img/idea/2017.2/arrowUp.png (Alt+Up): click this icon to move the selected task up in the list.
  • /help/img/idea/2017.2/arrowDown.png (Alt+Down): click this icon to move the selected task down in the list.
  • Show this page: select this check box if you want to display the run/debug configuration settings before applying it.
  • Active tool window: select this option if you want the Run/Debug tool windows to be activated automatically when you run/debug your application. This option is enabled by default.
Confirm rerun with process terminationThe behavior of this button depends on selecting the check box Single instance only for a particular run/debug configuration.
  • If this check box is selected, then, in case of a single instance, launching a new process (for example, by clicking /help/img/idea/2017.2/run.png on the main toolbar) while the other process is still running, results in showing a dialog box, where one should confirm termination of the current process and launching a new one.
  • If this check box is not selected (or in case of multiple instances), PyCharm starts the new process silently.
Temporary configurations limit Specify here the maximum number of temporary configurations to be stored and shown in the Select Run/Debug Configuration drop-down list.
Last modified: 26 October 2017

See Also