| View previous topic :: View next topic |
| Author |
Message |
billbell52
Joined: 27 Apr 2009 Posts: 8
|
Posted: Thu May 07, 2009 9:28 pm Post subject: How is ruby-debug Suppose To Work? |
|
|
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 |
|
 |
|
|
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
|
|
|
|