+ -
当前位置:首页 → 问答吧 → xdebug调试无法跟踪参数

xdebug调试无法跟踪参数

时间:2011-10-11

来源:互联网

最近在eclipse中用xdebug调试,单步跟踪时函数调用时传入的参数值总是显示为uninitialized。但其他的如本地变量,抄变量等都没有问题。而且如果把参数传入值加到watch里面,也能显示正确,很郁闷。请高手帮忙。
我的php -v结果:
apple:$ php -v
PHP 5.3.1 (cli) (built: Feb 27 2010 12:41:51) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
  with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick Rethans

php.ini里配置了xdebug如下
[xdebug]
xdebug.auto_trace=On
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.profiler_enable=On
xdebug.default_enable=on
xdebug.max_nesting_level=50
xdebug.profiler_enable=On
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote.port=9000
xdebug.remote_handler=dbgp
xdebug.dump_undefined=On
xdebug.show_local_vars=On

作者: buptlvhua   发布时间: 2011-10-11

没人遇到这个问题吗?

作者: buptlvhua   发布时间: 2011-10-12

相关阅读 更多