Need to prepare:
·phpstorm 8.0.1
##·xampp5.6.8
·chrome browser
Since xampp integrates mysql, apache, xdebug and php, there is no need to download it separately.Steps:
1. Install xampp2. Open the xampp folder, find the php.ini file in the php folder, and open it with notepad After that, you can see the following code in the file[XDebug] ;zend_extension = "D:\xampp\php\ext\php_xdebug.dll" ;xdebug.profiler_append = 1 ;xdebug.profiler_enable = 1 ;xdebug.profiler_enable_trigger = 1 ;xdebug.profiler_output_dir = "D:\xampp\tmp" ;xdebug.profiler_output_name = "cachegrind.out.%t-%s" ;xdebug.var_display_max_data=4056 ;xdebug.var_display_max_depth=5 ;xdebug.remote_enable = 1
xdebug.remote_handler = dbgp xdebug.remote_host = 127.0.0.1 xdebug.remote_autostart=1 xdebug.trace_output_dir = "D:\xampp\tmp" xdebug.remote_port=9000 xdebug.idekey="PHPSTORM"
##If the last two lines of information appear, the installation is successful.
Related recommendations: "
PhpStorm Usage TutorialOpen the settings in phpstorm, configure as shown below:
##Then open the setting and configure it as shown below:
4. Install chrome browser
Open the browser, open the extension in More Tools in the options, download an Xdebug helper on the network, and drag the file with the suffix crx directly into this page After installation, click the option and configure it as shown below:
5. After restarting apache, write a php small program in phpstorm, and then click this icon to change Turn on monitoring for
.6.
Add start url as shown below:
The demo is the name of my project, and demo.php is the name of the program that needs to be debugged.
7. Configure debugClick the fix button to enter the next interface
Click to add button to select other local.
Select the path where php is located as shown in the figure:After confirmation, return to the home page
8. Set breakpoints in the program to debug and complete the operation .The above is the detailed content of How to configure phpstorm to xampp. For more information, please follow other related articles on the PHP Chinese website!