XDebug 和 VIM.浏览数组值 [英] XDebug and VIM. Browsing array values

查看:20
本文介绍了XDebug 和 VIM.浏览数组值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法浏览数组里面的数据?

Is there any way to browse the data inside an array?

目前我只能看到 $data[0] = (array) 而无法知道数组中的内容.

Currently I can only see $data[0] = (array) with no way knowing what's inside the array.

我可以正常变量中的值.

I can the values inside normal variables fine.

有没有办法查看数组内部?也许是我不知道的命令?

Is there a way to see inside the arrays? Maybe a command I'm not aware of?

我发现我可以使用命令键 ,e 来计算数组或对象.

I found out I can use the command keys ,e to evaluate an array or object.

在我输入之后,e /*{{{1*/=>eval: 提示出现然后我可以输入 /*{{{1*/=>eval: $data[0] 查看值.

After I type ,e an /*{{{1*/ => eval: prompt shows up then I can type /*{{{1*/ => eval: $data[0] to see the values.

除了我得到以下输出格式:

Except I get it in the following output format:

/*{{{1*/ => eval: $data[0]

$command = 'eval';

EVAL_RESULT = (array) ;

EVAL_RESULT = (string) 'stringfromdata0-1' ;

EVAL_RESULT = (string) 'stringfromdata0-2' ;

EVAL_RESULT = (array) 'stringfromdata0-3' ;

这只做了我想要它做的一半.有没有办法输出数组的键?它只显示值,但键显示为EVAL_RESULT"而不是数组的透视键名称.

This only does half of what I want it to do. Is there any way to output the keys of the array? It only shows me the values, but the keys are shown as "EVAL_RESULT" instead of the their perspective key names of the array.

推荐答案

从来没有按照我想要的方式工作.相反,我找到了更好的方法.

Never got it the way I wanted it to work. Instead I found something way better.

使用 Vundle 我为下面的 xdebug 安装了 VIM 调试器:

Using Vundle I installed the VIM debugger for xdebug below:

https://github.com/joonty/vdebug

一有机会我就会发截图.

I'll post a screenshot whenever I get a chance.

虽然效果很好.

这篇关于XDebug 和 VIM.浏览数组值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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