FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

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

Help - Rubygems custom_require error with ruby-debug-ide

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



Joined: 27 Apr 2009
Posts: 8

PostPosted: Wed May 06, 2009 6:53 pm    Post subject: Help - Rubygems custom_require error with ruby-debug-ide Reply with quote

Trying to get to run.

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

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

test_debug

When I try to run it (F6) I get the following error:

C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- ruby-debug-ide (LoadError)
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from C:/userdata/bell/ruby/SU/lib/main.rb:5

I need some ideas to debug custom_require bug. The gem is there. It shows up on the Netbeans Ruby Gems form and I see it in the ruby install. Can someone try to run it and see if it works.

I am referring to:

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

Environment - running everything on same machine.
Windows Vista
Ruby install Ruby 1.8.6-p287
rubygems 1.3.2
ruby-debug-ide-0.4.5
linecache-0.43-x86-mswin32
Installed fast debugger
NetBeans IDE Dev (Build 200904281401)
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Wed May 06, 2009 8:16 pm    Post subject: Help - Rubygems custom_require error with ruby-debug-ide Reply with quote

Hi Bill,

billbell52 wrote:
Quote:
Trying to get to run.



require 'rubygems'

require 'ruby-debug-ide'


I think you need to require just 'ruby-debug', though at least I
encountered another problem when trying this out (namely undefined
method `run_init_script'). I'll try to have another look at this with
more time.

Erno




Quote:


def test_debug

puts "Hello World"

debugger(7000) # 7000 being a port

puts "Hello World2"

end



test_debug



When I try to run it (F6) I get the following error:



C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- ruby-debug-ide (LoadError)

from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'

from C:/userdata/bell/ruby/SU/lib/main.rb:5



I need some ideas to debug custom_require bug. The gem is there. It shows up on the Netbeans Ruby Gems form and I see it in the ruby install. Can someone try to run it and see if it works.



I am referring to:



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



Environment - running everything on same machine.

Windows Vista

Ruby install Ruby 1.8.6-p287

rubygems 1.3.2

ruby-debug-ide-0.4.5

linecache-0.43-x86-mswin32

Installed fast debugger

NetBeans IDE Dev (Build 200904281401)











Back to top
billbell52



Joined: 27 Apr 2009
Posts: 8

PostPosted: Wed May 06, 2009 8:24 pm    Post subject: Help - Rubygems custom_require error with ruby-debug-ide Reply with quote

Thanks for the response. Your right. I get the run_init_script error
as well. Appreciate any help on this or any direction on how to
debug. This is a great feature.


Quote:

I think you need to require just 'ruby-debug', though at least I encountered
another problem when trying this out (namely undefined method
`run_init_script'). I'll try to have another look at this with more time.

Erno






--
Regards, Bill Bell
Back to top
View user's profile Send private message
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