php.ini 配置文件信息[XDebug]
zend_extension="D:\phpstudy_pro\Extensions\php\php7.2.9nts\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9100
xdebug.remote_connect_back=1
;下面两项和Intellij idea里的对应
xdebug.idekey=bob
xdebug.remote_handel=dbgp
xdebug.remote_mode=req
;下面这句很关键,不设置intellij idea无法调试
xdebug.remote_autostart=1
;调试配置,详细的可以参考phpinfo页面进行配置
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.trace_output_dir="../xdebug"
xdebug.profiler_enable=on
xdebug.profiler_output_dir="../xdebug"
xdebug.collect_vars=on
xdebug.cli_color=on
xdebug.var_display_max_children=128
xdebug.var_display_max_data=51200
xdebug.var_display_max_depth=10
IDEA配置
1、配置PHP
2、配置Debug
3、配置项目RUN
4、打印断点测试
转载声明:本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动。
欢迎捐赠赞赏