+ -
当前位置:首页 → 问答吧 → eclipse+pdt+xdebug调试php跟踪局部变量有问题

eclipse+pdt+xdebug调试php跟踪局部变量有问题

时间:2009-11-19

来源:互联网

一直用echo来debug,最近想弄弄IDE,安装了基于eclipse的pdt
用着还行,有人说它太大了,我觉得还能承受
有了IDE又想debug,人总是贪心不足的
网上找了一下,都说xdebug好。
安了,确实不错。只是单步进入函数内部后,变量就跟踪不了。需要watch表达式才可以看到变量动态。还有就是不稳定,易崩溃。
我把xdebug的php.ini相关信息贴出,请大家指教[code][XDebug]
xdebug.remote_enable= on
xdebug.remote_autostart = On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.show_exception_trace = On
xdebug.show_local_vars = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
xdebug.collect_includes = On
xdebug.var_display_max_depth = 6[/code]这贴不知发哪里好,zend也是IDE相关,所以发这里 请版主见晾

作者: nandiao   发布时间: 2009-11-19