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 
  

How is ruby-debug Suppose To Work?

 
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: Thu May 07, 2009 9:28 pm    Post subject: How is ruby-debug Suppose To Work? Reply with quote

I am referring to

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

I fixed the initial problems. Renamed ruby-debug-ide to ruby-debug and commented out run_init_script method (saw a posting mentioning this). Using the following code I was expecting execution to suspend at the debugger(7000) line when I do a >ruby main.rb. I would then attach the Netbeans remote debugger. Nothing suspends. I can't find any info on the net on this. What is suppose to happen? I am running everything on the same machine.

main.rb file

require 'rubygems'
require 'ruby-debug'

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

test_debug
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