Home >Development Tools >phpstorm >How to debug programs in phpstorm

How to debug programs in phpstorm

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-08 13:15:567258browse

How to debug programs in phpstorm

1. Open phpstrom, click the file menu, and select settings.

How to debug programs in phpstorm

2. In the window that appears, select languages ​​& frameworks, and then select php.

How to debug programs in phpstorm

#3. Select the php version that has been installed on your local machine, such as 7.0.

How to debug programs in phpstorm

Related recommendations: "PhpStorm Usage Tutorial"

4. Select the directory where the php.exe file is located, as shown below:

How to debug programs in phpstorm

5. Select the file directory.

How to debug programs in phpstorm

6. After setting, as shown below:

How to debug programs in phpstorm

7. Click the ok button below to save set up.

How to debug programs in phpstorm

#8. So you can debug the program, select a file, right-click, and select run xxx.php.

How to debug programs in phpstorm

How to debug programs in phpstorm

9. A run window will appear in the following window, which is equivalent to running php from the command line.

How to debug programs in phpstorm

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.

How to debug programs in phpstorm

#11. In this way, the php file will be run on the browser, which is very convenient.

How to debug programs in phpstorm

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to uninstall phpstormNext article:How to uninstall phpstorm