Eclipse XDebug配置

清泛编译
http://xdebug.org/wizard.php
来输入拷贝的phpinfo信息来检测该下载哪个版本文件。


php.ini末尾添加如下配置:
zend_extension = php_xdebug-2.5.4-5.6-vc11-nts-x86_64.dll
[Xdebug]
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = Off
xdebug.remote_enable = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
xdebug.trace_output_dir="D:/xDebugLog"
xdebug.profiler_output_dir="D:/xDebugLog"
xdebug.profiler_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
注意:remote_autostart为on时,浏览器每次访问时eclipse会自动断点调试(非Debug模式也会)。

Eclise的调试配置自己折腾。


为啥不用ZendDebugger?

如果你的php版本是5.3以上,且是thread safe的,那么不要浪费你的时间做尝试,建议你直接改用XDebug吧。以下官方给出的解释。

The Debugger we provide supports only the non-thread-safe architecture, that is why it does not load in your configuration.
Zend stopped supporting the thread safe architecture when Microsoft also decided to implement its PHP engine with the fast-cgi architecture which means non-thread-safe.
Best regards,
Massi.

Eclipse XDebug ZendDebugger

分享到:
评论加载中,请稍后...
创APP如搭积木 - 创意无限,梦想即时!
回到顶部