Because Wamp himself has downloaded the xdebug, as long as the configuration is on the line.
1. Configure PHP.ini (open comments, no add)
XDEBUG Extension
[Xdebug]
zend_extension = "D:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll"
xdebug.remote_enable = 1
; remote host
xdebug.remote_host = localhost
; host Port
Xdebug.remote_port = 9001
; turn on auto start debugging
Xdebug.remote_autostart=on
xdebug.profiler_enable = 1
Xdebug.profiler_enable_trigger = Off
xdebug.profiler_output_name = cachegrind.out.%t.%p
Xdebug.profiler_output_dir = "D:/wamp64/tmp"
xdebug.show_local_vars=0
Xdebug.idekey = Phpstorm ; must be the same as configured in Phpstorm .
2. Configure Phpstorm
3. Download the Web Debug plugin, here are all chrome (optional):
1. XDEBUG_HELPER.CRX Link: http://pan.baidu.com/s/1gftMZKZ Password: WHHM
2. JetBrains IDE support CHROME_2_0_7_.CRX Link: http://pan.baidu.com/s/1sk8L0Ix Password: 3nuo
4. Select the page you want to debug, edit the current configuration
1) phpstorm internal debugging, do not use the browser
The upper left corner of the small phone can be lit red or green.
Click Edit Configurations, select PHP Script
Add breakpoints, click on the small green insects, choose a single step to run, you can happily debug ~ ~
2) Browser with debugging
The little phone must be green.
Ditto, just the second step to select PHP Web application, add a breakpoint after running the small green worm, refresh the browser.
Phpstorm Debugging PHP Code ~ actual Operation +mark~~