Today learning to configure the Phpstrom and Xdebug configuration method, found on the Internet more than n tutorials, there are understandable, there are many incomprehensible. Finally the configuration is ready, now share my configuration process. It's not easy to get on the road.
First of all, I am configuring Xdebug in XAMPP Environment, because the default php.ini has already written the Xdebug configuration information, as long as the comment is opened, there is one: xdebug.remote_enable=0 need to change it to 1 (open state), Otherwise, setting breakpoints will not work if the installation is successful.
In addition, although there are php_xdebug.dll files under php/ext/, but there is no xdebug information in the view phpinfo.php, the Xampp file in the Xdebug.dll package does not match my environment, so in/HTTP xdebug.org/download.php re-downloaded one, which is suitable for the environment, can be seen from the phpinfo:
You can then see the xdebug information from phpinfo to indicate that the installation was successful.
Next, configure Phpstrom, two-step:
1, File--Setting, PHP--Servers
Right Point + (new), fill in your information:
When finished, click Apply below.
Then see if the port is 9000 in the Debug option in PHP.
Then OK to exit.
2. Run, Edit configurations
Then Apply, OK!
This makes the configuration even more complete.
Hope to have other useful experience you can share together!
Configuration of Phpstrom and Xdebug