This fix is for anyone that has NetBeans 6.9.1, Ruby 1.9.2, Rails 3.0.0, already installed, and decides to add support for debugging on Windows XP.
That was my configuration, but it didn’t work properly. A debug session always ended with an error about a non existing script/rails file. After some research, today I discovered this fix that eventually allows me to cleanly debug a Ruby on Rails 3.0.0 project.
ONCE
- Download DevKit 4.5.0 from http://rubyinstaller.org/downloads/
- Install DevKit as described at http://github.com/oneclick/rubyinstaller/wiki/Development-Kit
- Enter the command
- Enter the command
- Edit the file (Ruby folder)/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb as follows This one isn’t required, but I find wrong labels very distracting
- Edit the file (Ruby folder)/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide.rb as follows See also: http://netbeans.org/projects/ruby/lists/users/archive/2010-09/message/25
PER PROJECT
- Edit the file (Project folder)/Gemfile as follows
- delete the file (Project folder)/Gemfile.lock
- Enter the command
That’s all. I hope it’ll work for you too 🙂
Thanks so much!!!
Your page was a god send!!
Thanks great post.
This fix to rdebug-ide.rb also work for me on ubuntu 10.04
Thanks! solve my ruby-debug-ide problem!
Awesome! Worked a treat!
Thanks! Thanks to your post, I can continue using Netbeans for my Rails development! I found the lack of a working debugger to be the #1 reason I was leaning to dump Netbeans. Thanks!
Anyone know where I can get a later build of Netbeans 6.9.1 than the official release?
I ask because this technique works on one of my machines that has NB build 201007282301, whereas the official 6.9.1 release is *older*, and won’t work with this technique.
nice post… it’s usefull
Oh my god…
this is so awesome…
thank you…
A bunch of months later, you made my day… I was looking to downgrade to RoR 2 because all the troubles with NetBeans 6.9 and RoR 3 and debugging.
Thanks a lot!
Worked with NB 7, thanks!
Thanx!!! Works like a gem 🙂
many thanks,
i took two weeks to solve this ruby-debug problem,
guys pls use the same version
Thanks for taking the trouble to post this, worked a treat.