PHP 动态调试

referer:http://blog.51cto.com/13770310/2175286
https://xdebug.org/download.php

phpstorm+phpstudy 动态调试环境,phpstorm安装参考:http://blog.51cto.com/010bjsoft/2176217
phpstudy2016自带xdebug扩展,不过php.ini不大一样,要对照着参数改改。

安装phpstudy后,开启php扩展 xdebug

对照修改php.ini

[XDebug]
xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"
zend_extension="D:\phpStudy\php\php-5.6.27-nts\ext\php_xdebug.dll"

xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.profiler_enable=on
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host= 127.0.0.1
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM

猜你喜欢

转载自blog.51cto.com/010bjsoft/2176308