PHPSTROM+xDebug断点调试配置

PHPSTROM+xDebug断点调试配置




[if !supportLists]1.    [endif]Phpstudy 安装xdebug  扩展

[if !supportLists]1.    [endif]打开php.ini开启xdebug扩展


搜索debug  ,修改为下面的文件,dir后面对应的路径自己修改为自己的路径

[XDebug]

xdebug.profiler_output_dir="F:\phpstudy\PHPTutorial\tmp\xdebug"

xdebug.trace_output_dir="F:\phpstudy\PHPTutorial\tmp\xdebug"

zend_extension="F:\phpstudy\PHPTutorial\php\php-5.6.27-nts\ext\php_xdebug.dll"


xdebug.remote_enable=1

xdebug.remote_autostart=1

xdebug.remote_host=192.168.12.15

xdebug.remote_port=9000

# 开启所有站点xdebug调试

xdebug.remote_connect_back=1


然后查看自己的phpinfo 


检查扩展是否安装成功


3.安装成功,可以进行配置phpstrom



加载自己的php.exe

[if !supportLists]1.    [endif]按照填写


5.


6.


第一次创建没有配置,需要加一个配置


配置成以上的路径需要写到项目根目录,即可使用

打断点




打开浏览器访问项目,网页转圈圈,断点断到了




查看ide断点结果


显示模块和断点操作按钮如下



你可能感兴趣的:(PHPSTROM+xDebug断点调试配置)