NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Getting ruby-debug-ide working

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
billbell52



Joined: 27 Apr 2009
Posts: 9

PostPosted: Sun May 03, 2009 3:12 pm    Post subject: Getting ruby-debug-ide working Reply with quote

I am trying to get ruby-debug-ide working inside a ruby program . I am referring to the following

http://blogs.sun.com/martink/entry/remote_debugging_debug_whatever_ruby

Environment:
Windows Vista
Ruby install Ruby 1.8.6-p287
rubygems 1.3.2
Installed fast debugger
NetBeans IDE Dev (Build 200904281401)

Ruby Program

def test_debug
puts "Hello World"
puts "Hello World2"
end

test_debug

When I use the command line interface and then attach the Netbeans debugger it works perfectly - awesome.

>rdebug-ide -p 7000 --stop -- 'C:\userdata\bell\ruby\SU\lib\main.rb'
Fast Debugger (ruby-debug-ide 0.4.5) listens on localhost:7000
Hello World
Hello World2

Now I try to trigger the debugger from within the Ruby program

require 'rubygems'
require 'ruby-debug-ide'

def test_debug
puts "Hello World"
debugger(7000) # 7000 being a port
puts "Hello World2"
end

test_debug

I get the following error. I guess I am not understanding how this is suppose to work. What am I missing?

Fast Debugger (ruby-debug-ide 0.4.5) listens on localhost:59261
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:\userdata\bell\ruby\SU\lib\main.rb:5
C:/Ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.5/lib/ruby-debug.rb:101:in `debug_load'
C:/Ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.5/lib/ruby-debug.rb:101:in `debug_program'
C:/Ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.5/bin/rdebug-ide:82
C:/Ruby/bin/rdebug-ide:19:in `load'
C:/Ruby/bin/rdebug-ide:19
Uncaught exception: no such file to load -- ruby-debug-ide
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo