How do I debug a Rails application in Aptana Studio 3?
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:
Hope that helps!ruby-debug-base19 (0.11.25)
ruby-debug-ide (0.4.16)
Remote debugging Rails application in Aptana Studio 3
The old steps for Netbeans are relatively close since Aptana/RadRails and Netbeans share the same debugger core: http://blogs.oracle.com/martink/entry/remote_debugging_debug_whatever_ruby
Basically, run the ruby app using rdebug-ide -p 7000
(or whatever port you want), then inside the IDE, go to Run > Debug configurations. On the left hand side, select "Remote Ruby Debug Session" and then add a new configuration there (the plus icon above the list). Enter the proper host IP/name and port you entered on the command line.
Related Topics
How to Validate Overlapping Times in Rails with Postgresql
I Am Getting This Gem Install Error for Kgio Gem When I Do a Bundle Install
Encoding Problems in Rails on Ruby 1.9.1
How to Handle Serialized Edit Fields in an Active Admin Resource
Rails3 Activerecord::Statementinvalid:... No Such Table in Every Test
Can Sunspot Search Inside Array
Where to Reopen a Class in Ror
Regex That Matches Valid Ruby Local Variable Names
How to Tell Unicorn to Understand Heroku's Signals
Extend Model in Plugin with "Has_Many" Using a Module
How to Handle Single Table Inheritance in Simpleform So a Single Helper Handles All Models
I Need to Go from HTML to Markdown, Any Suggestion
How to Install Wraith on Windows 7
Importing CSV Data into a Ruby Array/Variable
Automatically Run Rspec When Plain-Old Ruby (Not Rails) Files Change
How to Use Rspec to Test That a Model Using Paperclip Is Validating The Size of an Uploaded File
How to Resize Image Only If Width Exceeds with Graphics/Image Magick