Loading

PhpStudy+PhpStorm远程调试

PhpStudy+PhpStorm远程调试

环境

172.16.4.133: web server(phpstudy)

172.16.4.1:PhpStorm

Phpstudy配置

php扩展钩上xdebug

php.ini修改配置

[Xdebug]
zend_extension=C:/Users/Public/phpstudy_pro/Extensions/php/php5.4.45nts/ext/php_xdebug.dll
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=on
xdebug.trace_output_dir=C:/Users/Public/phpstudy_pro/Extensions/php_log/php5.4.45nts.xdebug.trace
xdebug.profiler_enable=on
xdebug.profiler_output_dir=C:/Users/Public/phpstudy_pro/Extensions/php_log/php5.4.45nts.xdebug.profiler
xdebug.remote_enable=1 
xdebug.remote_host=172.16.4.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey = mykey
xdebug.remote_autostart=1
xdebug.remote_mode = "req"

PhpStorm配置

打开Preference

debug处新增 php web page

打开电话按钮侦听并开启debug

之后会打开浏览器弹出一个带有xdebug参数的web页面

之后login逻辑下断点,发个登陆包,成功进入断点

Reference

https://blog.csdn.net/m0_49835838/article/details/123560731

posted @ 2022-10-13 00:12  Zh1z3ven  阅读(172)  评论(0编辑  收藏  举报