How do I debug a Rails application in Aptana Studi

2019-02-13 23:43发布

问题:

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.

回答1:

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.

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).

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)

Hope that helps!