This article to share the content is about Xdebug in the phpstorm in the configuration, there is a certain reference value, hope can help to the needs of friends.
PHP configuration: Turn on Xdebug
In the Xdebug configuration section of the php.ini file, add the following configuration options. The main implication is to set the address, port number, and representation of the Phpstorm debug client.
xdebug.remote_enable = on xdebug.auto_trace = on xdebug.remote_handler=dbgp xdebug.remote_host= localhost xdebug.remote_port=9000 xdebug.idekey=phpstorm
After the configuration is complete, open phpstorm, set (setting) PHP parser, you should see that the Xdebug extension is installed, otherwise check the configuration file.
2. Debug a single PHP file
To debug a single PHP file, you need to configure the DBGP parameter to match the configuration parameters of the Xdebug. As shown in.
You can then debug a single php file by selecting PHP script in the Run>edit configurations.