Netbeans 6.9.1 + Rails 3 + Ruby 1.9.2P0 Debugging

netbeans 6.9.1 + rails 3 + ruby 1.9.2p0 debugging

I have found the solution! This post gave me some hints.

my platform: ruby 1.9.2-p136, rails 3.0.3, netbeans 7.0 beta

file: ruby-1.9.2-p136/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:79

script = ARGV.shift
Debugger::PROG_SCRIPT = (script =~ /script([\\\/])rails/ ? Dir.pwd + $1 : '') + script
puts Debugger::PROG_SCRIPT
#Debugger::PROG_SCRIPT = ARGV.shift

Compatibility issue of Netbeans 6.9.1 with Ruby 2.1 and rails 4.1.12

It came out to be minor issue. To run the Fast Debugger in Netbeans, one needs to install the version >0.4 of the gem ruby-debug-ide.
Worked for me with the version ruby-debug-ide 0.4.33

How to fix rails 3.0.1 on Netbeans 6.9.1 for Ruby 1.9.2

I had the same problem. Here is what you can try:

  1. Go to the folder where the gem ruby-debug-ide-0.4.6 (or whatever your version is) is installed.
  2. In the lib folder, edit the file ruby-debug.rb
  3. Locate the method def debug_program(options).
  4. Look for the line bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode)
  5. Just before that line, add Debugger.const_set('PROG_SCRIPT', './rails server')
  6. Save file and restart Netbeans.
    You may see a warning that constant is being set or something when NetBeans starts the debugger, just ignore that.

Also, you should upgrade to using Rails 3.0.3

Can't install fast debugger at Netbeans 6.9.1 for ruby 2.2.3p173

I have installed manually ruby-debug-ide -v 0.4.33 gem and problem has been solved

gem install ruby-debug-ide -v 0.4.33

Trouble in installing fast debugger on Netbeans IDE 6.9 for rails 3.0.1

I have found the solution.

hit 'gem env' on the command line and take note of the GEM paths

(1)GO to project properties.

(2)Select Rails

(3)Click on 'Manage' button corresponding to the ruby platform

(4)Now change the gem paths & home path provided in the netbeans IDE for gems to the one you noted before.

This would solve your problem!!

Rails on Netbeans: Uncaught exception: no such file to load -- script/server or script/console

I have found the solution! This post gave me some hints.

my platform: ruby 1.9.2-p136, rails 3.0.3, netbeans 7.0 beta

file: ruby-1.9.2-p136/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:79

script = ARGV.shift
Debugger::PROG_SCRIPT = (script =~ /script([\\\/])rails/ ? Dir.pwd + $1 : '') + script
puts Debugger::PROG_SCRIPT
#Debugger::PROG_SCRIPT = ARGV.shift

Debugging Rails in Netbeans 6.9 suddenly stopped working

Well, uninstalling and reinstalling fast-debug-ide gem solved the problem.

ruby-debug with Ruby 1.9.3?

Update (April 28, 2012)

Try the new debugger gem as a replacement for ruby-debug.

(credit to @ryanb)


Update (March 2, 2012)

Installation of linecache19 and ruby-debug-base19 can be easily done with:

bash < <(curl -L https://raw.github.com/gist/1333785)

(credit to @fredostarr)


Original answer

Have you looked at ruby-debug19 on ruby-1.9.3-preview1?

Here's a temporary solution:
http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug

Excerpt from the site:

First download linecache19-0.5.13.gem and
ruby-debug-base19-0.11.26.gem from
http://rubyforge.org/frs/?group_id=8883, then …

$ gem install linecache19-0.5.13.gem 
Building native extensions. This could take a while...
Successfully installed linecache19-0.5.13
1 gem installed
$ gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/Users/santiago/.rbenv/source/ruby-1.9.3-p0
Building native extensions. This could take a while...
Successfully installed ruby-debug-base19-0.11.26
1 gem installed
$ irb
irb(main):001:0> require 'ruby-debug'
=> true


Related Topics



Leave a reply



Submit