簡體   English   中英

xdebug vim插件不顯示變量值(php)

[英]xdebug vim plugin doesn't show variable values (php)

我在Ubuntu 10.04 LTS上

vim版本7.2.330

xdebug vim插件版本1.1.1(從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文件中有這些選項

[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 (右上窗口)當我在$file var上按F12鍵時,得到這個/*{{{1*/ => property_get: file

我還嘗試了本文所附的版本http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html

結果相同。

我還發現幾乎相同的未回答問題在這里xdebug不顯示數組的內容?

預先感謝您的任何建議

編輯debugger.vim文件(〜/ .vim / plugin / debugger.vim)並找到與以下內容相似的行

let g:debuggerMaxDepth = 1

將深度變量增加到合理的數量(5個應該足夠),然后保存並重新啟動vim。

這並不能真正回答您的xdebug問題,但是對於簡單的變量內容檢查,我發現FirePHP非常有用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM