I've built Ruby 1.9 and all is well with that. With respects to using
the debugger, the README says "use rb_debug". Now does that mean
`require rb_debug` in an irb session or am I to recompile Ruby to
include support for the debugger?
irb(main):004:0> require rb_debug.rb
NameError: undefined local variable or method `rb_debug' for main:Object
from (irb):4
from /usr/local/lib/ruby/1.9.0/irb.rb:150:in `block (2 levels)
in eval_input' from /usr/local/lib/ruby/1.9.0/irb.rb:259:in
`signal_status' from /usr/local/lib/ruby/1.9.0/irb.rb:147:in `block in
eval_input' from /usr/local/lib/ruby/1.9.0/irb.rb:146:in `eval_input'
from /usr/local/lib/ruby/1.9.0/irb.rb:70:in `block in start'
from /usr/local/lib/ruby/1.9.0/irb.rb:69:in `catch'
from /usr/local/lib/ruby/1.9.0/irb.rb:69:in `start'
from /usr/local/bin/irb:13:in `<main>'
I've tried to find some docs on this via ri debug:-
More than one method matched your request. You can refine
your search by asking for information on one of:
You need to have the quotes around it, because it takes a String
HTH,
Ari
···
On Jan 23, 2008, at 5:26 PM, John Maclean wrote:
I've built Ruby 1.9 and all is well with that. With respects to using
the debugger, the README says "use rb_debug". Now does that mean
`require rb_debug` in an irb session or am I to recompile Ruby to
include support for the debugger?
irb(main):004:0> require rb_debug.rb
NameError: undefined local variable or method `rb_debug' for main:Object
I've built Ruby 1.9 and all is well with that. With respects to using
the debugger, the README says "use rb_debug". Now does that mean
`require rb_debug` in an irb session or am I to recompile Ruby to
include support for the debugger?
irb(main):004:0> require rb_debug.rb
NameError: undefined local variable or method `rb_debug' for main:Object
from (irb):4
from /usr/local/lib/ruby/1.9.0/irb.rb:150:in `block (2 levels)
in eval_input' from /usr/local/lib/ruby/1.9.0/irb.rb:259:in
`signal_status' from /usr/local/lib/ruby/1.9.0/irb.rb:147:in `block in
eval_input' from /usr/local/lib/ruby/1.9.0/irb.rb:146:in `eval_input'
from /usr/local/lib/ruby/1.9.0/irb.rb:70:in `block in start'
from /usr/local/lib/ruby/1.9.0/irb.rb:69:in `catch'
from /usr/local/lib/ruby/1.9.0/irb.rb:69:in `start'
from /usr/local/bin/irb:13:in `<main>'
I've tried to find some docs on this via ri debug:-
More than one method matched your request. You can refine
your search by asking for information on one of:
I've built Ruby 1.9 and all is well with that. With respects to using
the debugger, the README says "use rb_debug". Now does that mean
`require rb_debug` in an irb session or am I to recompile Ruby to
include support for the debugger?
Ahh. For some reason I thought that since ruby-debug didn't work with
1.9 [yet] that there was no debugger for 1.9. But apparently there
is--the default built-in [albeit slow] one. Silly me.
Note also that there's "ruby unroller" if anybody wants to see the trace
of their program executing: http://unroller.rubyforge.org/