我使用的是 Ubuntu 10.04 LTS
vim 版本 7.2.330
xdebug vim插件版本1.1.1(从下载http://www.vim.org/scripts/script.php?script_id=1929 http://www.vim.org/scripts/script.php?script_id=1929)
PHP 5.3.2
阿帕奇/2.2.14
Xdebug v2.0.5
我的里面有这些选项/etc/php5/apache2/php.ini
file
[debug]
; Remote settings
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
; General
xdebug.auto_trace=off
xdebug.collect_includes=on
xdebug.collect_params=off
xdebug.collect_return=off
xdebug.default_enable=on
xdebug.extended_info=1
xdebug.manual_url=http://www.php.net
xdebug.show_local_vars=0 (tried with 1, same result)
xdebug.show_mem_delta=0
xdebug.max_nesting_level=100
;xdebug.idekey=
; Trace options
xdebug.trace_format=0
xdebug.trace_output_dir=/tmp
xdebug.trace_options=0
xdebug.trace_output_name=crc32
; Profiling
xdebug.profiler_append=0
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=0
xdebug.profiler_output_dir=/tmp
xdebug.profiler_output_name=crc32
当我按 F12 显示可变内容时,而不是像此图像上那样显示它http://2bits.com/sites/2bits.com/files/vim-debug-displaying-variables.png http://2bits.com/sites/2bits.com/files/vim-debug-displaying-variables.png(右上角窗口)我明白了/*{{{1*/ => property_get: file
当我按下 F12 时$file
var.
我还尝试了本文附带的版本http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html
相同的结果。
我还在这里发现了几乎相同的未回答的问题xdebug不显示数组的内容? https://stackoverflow.com/questions/4182225/xdebug-does-not-show-the-content-of-array
预先感谢您的任何建议
编辑 debugger.vim 文件 (~/.vim/plugin/debugger.vim) 并找到类似于以下内容的行
let g:debuggerMaxDepth = 1
将深度变量增加到合理的数量(5应该足够了)
保存并重启vim。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)