Select the run/debug configuration you want to share, enable the Store as project file option, and specify the location where the configuration file will be stored. With legacy projects, you can only share all configurations at once by adding the. ipr-based projects do not support individual run/debug configurations. This saves a lot of time as run/debug configurations sometimes get sophisticated, and keeping them in sync manually would be tedious and error-prone. The same mechanism can also be used when you want to send your configuration as a file to someone else. If you are working in a team, you might want to share your run/debug configurations so that your teammates could run the application using the same configuration or enable them to remotely attach to the process you are running.įor these purposes, P圜harm provides a mechanism to store your run/debug configurations as project files and share them through VCS. See Pass parameters to the running script for an example of using a macro in a run/debug configuration. In the Run/Debug Configurations dialog, select the target configuration from the list of the Python run/debug configurations.Ĭlick More options and select Parameters.Ĭlick + in the Parameters field and select a macro from the list of the available macros. Press Alt+Shift+F10, then press 0 to display the Edit Configuration dialog, or select the configuration from the popup and press F4. With the Navigation Bar visible ( View | Appearance | Navigation Bar), choose Edit Configurations from the run/debug configurations selector. To run the configuration right away, click Run.Īdd a macro to a Python run/debug configurationįrom the main menu, choose Run | Edit Configurations. You can either run the configuration right away, or save the configuration to run it later.Ĭlick OK to save the run configuration for later and close the dialog. The list of mandatory and optional parameters may vary depending on the selected run/debug configuration type.įor the detailed description of the Python template, see Run/Debug configuration parameters. Set the run/debug configuration parameters. This name will be shown in the list of the available run/debug configurations. Specify the run/debug configuration name in the Name field. The list shows the run/debug configuration templates. In the Run/Debug Configuration dialog, click on the toolbar or press Alt+Insert. Alternatively, click in the Run widget and select Edit Configurations from the drop-down menu. Create a run/debug configuration from a templateįrom the main menu, select Run | Edit Configurations. The list of available templates varies depending on the installed and enabled plugins. P圜harm provides run/debug configuration templates for different languages, tools, and frameworks. For example, MyProject/.idea/Car.xml.Īlternatively, select a temporary configuration in the Run/debug configurations dialog and click on the toolbar. Once you save a temporary configuration, it becomes permanent and it is recorded in a separate XML file in the /.idea/ directory. Select a temporary configuration in the run/debug configuration switcher, click /, and select Save Configuration. Save a temporary configuration as permanent Save a temporary run/debug configuration as permanent.Ĭreate from a template or copy an existing configuration. P圜harm provides the following ways to create a permanent run/debug configuration: Create permanent run/debug configurations If necessary, you can increase this limit in Settings | Advanced Settings | Run/Debug | Temporary configurations limit. The older ones are automatically deleted when new ones are added. The maximum number of temporary configurations is 5. Permanent configurations have opaque icons while the icons of temporary configurations are semi-transparent. So whenever you run/debug or test your code, P圜harm either uses an existing permanent run/debug configuration or creates a new temporary one. Permanent configurations remain as part of your project until you remove them. Permanent - created explicitly from a template or by saving a temporary configuration. Temporary - created every time you run or debug functions or tests. There are two types of run/debug configurations: For example, you can execute the same code with different Python interpreters, providing various sets of environment variables, and getting input values from alternative files. With different startup properties, you can define different ways that P圜harm uses to execute your script. Each configuration is a named set of startup properties that define what to execute and what parameters and environment should be used. P圜harm uses run/debug configurations to run, debug, and test your code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |