PHPStorm配置Xdebug调试

1、下载Xdebug

https://xdebug.org/


2、配置php

[xdebug]
zend_extension="D:\develop\PHP56\ext\php_xdebug-2.5.1-5.6-vc11-x86_64.dll"    #xdebug扩展的路径

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="PHPSTORM"


3、配置phpstorm

1)新建php server

PHPStorm配置Xdebug调试


2)debug配置


PHPStorm配置Xdebug调试


PHPStorm配置Xdebug调试


PHPStorm配置Xdebug调试


4、断点调试


PHPStorm配置Xdebug调试


点击右上角的爬虫图标运行程序