如何在 Aptana Studio 3 中调试 Rails 应用程序? [英] How do I debug a Rails application in Aptana Studio 3?

查看:25
本文介绍了如何在 Aptana Studio 3 中调试 Rails 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Aptana Studio 是否包括对 Rails 应用程序的调试,就像 RubyMine 对断点和一切所做的那样?我正在使用 Aptana Studio 3.0.5,但无法找到如何使其正常工作.

Does Aptana Studio include debugging for Rails apps just as RubyMine does with breakpoints and everything? I'm using Aptana Studio 3.0.5 and haven't been able to find how to get this working.

推荐答案

Aptana Studio 3+ 确实有 Ruby 调试.除了 HAML 文件中的断点有些不正常之外,我已经能够毫无问题地使用它.

Aptana Studio 3+ does have Ruby debugging. Other than breakpoints in HAML files misbehaving somewhat, I've been able to use this without any problems.

但是,您必须确保已经安装了 gem ruby-debug-ide(您可以使用以下命令安装它:gem install ruby​​-debug-ide).

However, you must make certain that you have installed the gem ruby-debug-ide (you can install it with the command: gem install ruby-debug-ide).

要验证是否安装了适当的调试 gem,请在您选择的终端应用程序中运行 gem list(不确定您在哪个平台上)并确保它在那里......寻找这些行在输出中:

To verify that the appropriate debug gems are installed, run gem list in your Terminal application of choice (not sure what platform you are on) and be sure it's there ... look for these lines in the output:

ruby-debug-base19 (0.11.25)
ruby-debug-ide (0.4.16)

ruby-debug-base19 (0.11.25)
ruby-debug-ide (0.4.16)

希望有帮助!

这篇关于如何在 Aptana Studio 3 中调试 Rails 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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