PhpStrom调试,由XDebug提供支持

一、需要添加到php.ini中的内容

里面的各种地址,按照实际环境与需求修改

[XDebug]
zend_extension="D:\phpStudy\php\php-7.1.12-x86\ext\php_xdebug-2.5.5-7.1-vc14.dll"
;是否开启远程调试
xdebug.remote_enable = on
;是否开启远程调试自动启动
xdebug.remote_autostart = 1
;允许调试的客户端IP
xdebug.remote_host=127.0.0.1
;是否开启调试内容
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = cachegrind.out.%t.%p
;调试输出路径
xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"

xdebug.show_local_vars=0

xdebug.auto_trace = On
;跟踪输出路径
xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"

二、如果把上面配置信息添加到系统path那个PHP环境中时,则能调试的是 PHP script

三、添加到本地web环境中,则是调试PHP web page

 
posted @ 2018-03-03 14:49  zhaoxlchn  阅读(185)  评论(0编辑  收藏  举报