Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug ruby on rails in eclipse aptana plugin

I'm trying to figure out this eclipse aptana plugin (coming from a visual studio background). When I try to debug my project as follows:

enter image description here

It throws this error:

Unable to find 'rdebug-ide' binary script. May need to install 'ruby-debug-ide' gem, or may need to add your gem executable directory to your PATH (check location via 'gem environment').

This is gem environment:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.5.2
  - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby192/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/Ruby192/lib/ruby/gems/1.9.1
     - C:/Users/Lol/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

The server can be started, I can go to localhost:3000 and it loads. But I dont understand this error or how to get debugging started. Any idea what is wrong?

PS. Coming from an asp.net mvc background, I can right click controllers folder and add controller. Then right click an action and generate a view for it. Can I not do this in ruby on rails development?

like image 269
Shawn Mclean Avatar asked May 24 '11 00:05

Shawn Mclean


2 Answers

Issue the following command from the command line:

gem install ruby-debug-ide

The error message is saying that you don't have this gem installed. It seems as though Aptana does not check to see what gems are installed before activating certain features.

In case you don't know what a gem is, think of it as a plugin that is installed system-wide.

like image 195
salexander Avatar answered Oct 06 '22 02:10

salexander


Take a look at this post for installing ruby debug for ruby 1.9.3

like image 40
Jahan Zinedine Avatar answered Oct 06 '22 01:10

Jahan Zinedine