info-var-bug.rb:1
class Lousy_inspect
# # ***************************************************
# # Test handling of info variables when we have 
# # redefined inspect or to_s which give an error.
# # ***************************************************
# set debuggertesting on
Currently testing the debugger is on.
# # Go to where we have a bad "inspect" of a local variable
# continue 34
info-var-bug.rb:34
return x
# info variables
x = #<Lousy_inspect:0xb784945c>
# # Go to where we have a bad "inspect" and "to_s" of a local variable
# continue 38
info-var-bug.rb:38
return x
# info variables
x = *Error in evaluation*
# break 29
Breakpoint 1 file info-var-bug.rb, line 29
# # The first time through, we can do inspect.
# continue
Breakpoint 1 at info-var-bug.rb:29
info-var-bug.rb:29
@b = 5
# info locals
a = 10
# # Now go to where we have a bad "inspect" of an class variable
# continue
Breakpoint 1 at info-var-bug.rb:29
info-var-bug.rb:29
@b = 5
# info locals
a = #<Lousy_inspect:0xb784945c>
# info variables
a = #<Lousy_inspect:0xb784945c>
@a = #<Lousy_inspect:0xb784945c>
# # Now go to where we have a bad "inspect" and "to_s" of an class variable
# continue
Breakpoint 1 at info-var-bug.rb:29
info-var-bug.rb:29
@b = 5
# info locals
*Error in evaluation*
# quit
