xdebug vim 插件不显示变量值 (php) [英] xdebug vim plugin doesn't show variable values (php)

查看:26
本文介绍了xdebug vim 插件不显示变量值 (php)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Ubuntu 10.04 LTS

I'm on Ubuntu 10.04 LTS

vim 版本 7.2.330

vim version 7.2.330

xdebug vim 插件版本 1.1.1(下载自 http://www.vim.org/scripts/script.php?script_id=1929)

xdebug vim plugin version 1.1.1 (downloaded from http://www.vim.org/scripts/script.php?script_id=1929)

PHP 5.3.2

Apache/2.2.14

Apache/2.2.14

Xdebug v2.0.5

Xdebug v2.0.5

我的 /etc/php5/apache2/php.ini 文件中有这些选项

I have these options in my /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(右上角窗口)我得到这个 /*{{{1*/=>property_get: file 当我在 $file var.

When I press F12 to show variable content, instead of showing it like for example on this image http://2bits.com/sites/2bits.com/files/vim-debug-displaying-variables.png (top right window) I get this /*{{{1*/ => property_get: file when I press F12 on $file var.

我也试过本文附带的版本http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html

I also tried the version that is attached to this article http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html

同样的结果.

我在这里也发现了几乎相同的未回答问题xdebug 不显示数组的内容?

I also found almost the same unanswered question here xdebug does not show the content of array?

预先感谢您的任何建议

推荐答案

编辑 debugger.vim 文件(~/.vim/plugin/debugger.vim),找到类似的一行

Edit debugger.vim file (~/.vim/plugin/debugger.vim) and find a line similar to

let g:debuggerMaxDepth = 1

将深度变量增加到合理的数量(5 应该就足够了)保存并重启vim.

increase the depth varibale to a reasonable amount (5 should be enough) save and restart vim.

这篇关于xdebug vim 插件不显示变量值 (php)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆