Creating a temporary run/debug configuration

Select the desired PHP class or file in the Project tool window or open it in the editor.

Do one of the following:

On the context menu, choose Run <name> or Debug <name>.

Press Ctrl+Shift+F10.

On the submenu, choose the temporary run/debug configuration you would like to create:

Click to create the JavaScript Debug configuration, which is used for debugging JavaScript in applications running on the built-in or on an external web server and for debugging Dart web applications.

Click to create the PHP Script configuration, which is used for running and debugging of single PHP files locally using a PHP console.

PhpStorm creates a temporary configuration, which appears in the Run/Debug Configuration selector when the run or debug session is over.

For temporary JavaScript Debug configurations, PhpStorm automatically assembles the URL address of the Web page to open. To have it done properly, you need to specify the project root folder URL on the Deployment page of the Settings dialog box.