问题描述
如何在 ruby 中设置变量的监视.我使用 Aptana 作为 IDE.我是为 .NET 而来的,我习惯于通过将鼠标悬停在变量上来查看变量值.
How I can set the watch on variable's in ruby. I am using Aptana as IDE. I am coming for .NET and am used to seeing the variable values just by hovering over the variable.
在 aptana 3 中,我无法找到查看当前状态和变量值的方法.我看到 self 对象有太多信息并且很难找到我正在寻找的变量的值?
In aptana 3 i cant find way through which i see current state and values of the variable. I seeing the self object there too much information and difficut to find the value of the variable i am looking for ?
推荐答案
这个答案 到一个非常相似的问题,包括有关让 ruby-debug-ide 与 Aptana 3 一起工作的分步说明.它是从 OS X 的角度编写的,但您应该能够轻松地将它应用到您自己的设置中(以特别注意阅读 RVM/非 RVM 注释).
This answer to a very similar question includes step-by-step instructions on getting ruby-debug-ide to work with Aptana 3. It's written from an OS X perspective but you should be able to apply it to your own setup readily (take special care to read the RVM/not-RVM notes).
这篇关于Aptana 3 和 ruby 调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!