Home > Article > Development Tools > How to debug programs in phpstorm
1. Open phpstrom, click the file menu, and select settings.
2. In the window that appears, select languages & frameworks, and then select php.
#3. Select the php version that has been installed on your local machine, such as 7.0.
Related recommendations: "PhpStorm Usage Tutorial"
4. Select the directory where the php.exe file is located, as shown below:
5. Select the file directory.
6. After setting, as shown below:
7. Click the ok button below to save set up.
#8. So you can debug the program, select a file, right-click, and select run xxx.php.
9. A run window will appear in the following window, which is equivalent to running php from the command line.
10. On the right side of the editor, hover the mouse over the code for a while, and a browser selection window will appear. We can select the installed browser. , such as Google Chrome.
#11. In this way, the php file will be run on the browser, which is very convenient.
The above is the detailed content of How to debug programs in phpstorm. For more information, please follow other related articles on the PHP Chinese website!