Debugger strangeness

J

Jos Backus

lizzy:~% cat r
class Foo
def initialize(s)
@s = s
end

def bar
@s
end
end

f = Foo.new("string")
p f.bar
lizzy:~% ruby -rdebug r
Debug.rb
Emacs support available.

r:1:class Foo
(rdb:1) help
Debugger help v.-0.002b
Commands
b[reak] [file:|class:]<line|method>
b[reak] [class.]<line|method>
set breakpoint to some position
...
(rdb:1) b Foo.bar
r:1:uninitialized constant Foo
(rdb:1) b Foo:bar
Set breakpoint 1 at Foo:bar
(rdb:1) c
"string"
lizzy:~% # Breakpoint didn't work

How is this supposed to work?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,129
Latest member
FastBurnketo
Top