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
我的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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28