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, PhpStorm provides a mechanism to store your run/debug configurations as project files and share them through VCS. In the Before launch section, define whether you want to perform any specific actions before launching the application, for example, execute some tools or scripts prior to launching the run/debug configuration.įor information on particular Before launch activities, refer to Before launch The list of mandatory and optional parameters may vary depending on the selected run/debug configuration type.įor the detailed description of the selected template, see the respective section of run/debug configurations reference.
![phpstorm debug phpstorm debug](https://jonathanbossenger-websites-assets.fra1.digitaloceanspaces.com/wp-content/uploads/2021/01/23152404/Listen.png)
Set the run/debug configuration parameters. If this option is disabled, attempting to re-run the configuration will terminate the active session. Select Allow parallel run if you want to allow multiple instances of the configuration to run at the same time. This name will be shown in the list of the available run/debug configurations. Specify the run/debug configuration name in the Name field. If you are not sure which template to choose, refer to Run/debug configurations dialog for more information on particular templates. The list shows the run/debug configuration templates. In the Run/Debug Configuration dialog, click on the toolbar or press Alt+Insert. Alternatively, press Alt+Shift+F10, then 0. 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. PhpStorm provides run/debug configuration templates for different languages, tools, and frameworks. Select a temporary configuration in the run/debug configuration switcher and then click Save Configuration.Īlternatively, select a temporary configuration in the Run/debug configurations dialog and click on the toolbar. Save a temporary configuration as permanent Save a temporary run/debug configuration as permanent.Ĭreate from a template or copy an existing configuration. PhpStorm 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/Preferences | Advanced Settings | IDE | Temporary Run/Debug 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.
![phpstorm debug phpstorm debug](https://imgs.developpaper.com/imgs/783992759-586c0d3a1841c_articlex.png)
So whenever you run/debug or test your code, PhpStorm 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.
![phpstorm debug phpstorm debug](http://w0rd-driven.github.io/phpstorm/images/4-debugging.png)
Permanent- created explicitly from a template or by saving a temporary configuration. To call the context menu, right-click an object or an area. Temporary- created every time you select Run from the context menu. There are two types of run/debug configurations: Each configuration is a named set of startup properties that define what to execute and what parameters and environment should be used. PhpStorm uses run/debug configurations to run, debug, and test your code.