PhpStrom调试,由XDebug提供支持

1、须要添加到php.ini中的内容

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

[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"

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

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

相关文章
相关标签/搜索