gcd.rb:4
def gcd(a, b)
# # ********************************************************
# # This tests annotations
# # ********************************************************
# set debuggertesting on
Currently testing the debugger is on.
# set callstyle last
Frame call-display style is last.
# set force off
force-stepping is off.
# set annotate 3
Annotation level is 3
# # Get into gcd
# step 2
starting
stopped
breakpoints
No breakpoints.

stack
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
    #1 at line gcd.rb:18

variables
a = 3
b = 5
self = main

source gcd.rb:6
if a > b
# # "break" should trigger break annotation
# break 10
Breakpoint 1 file ./gcd.rb, line 10
breakpoints
Num Enb What
  1 y   at gcd.rb:10

# # "delete" should trigger break annotation
# delete 1
breakpoints
No breakpoints.

# # p should not trigger a breakpoint annotation
# p a
3
# # "up" should trigger annotations
# up
#1 at line gcd.rb:18
stack
    #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
--> #1 at line gcd.rb:18

variables
self = main

# # "b" should trigger like "break"
# b 12
Breakpoint 2 file ./gcd.rb, line 12
breakpoints
Num Enb What
  2 y   at gcd.rb:12

# # "display" should trigger display annotation
# display 1+2
1: 1+2 = 3
display
1: 1+2 = 3

# # undisplay should trigger display annotation
# undisplay 1
display

# step
display

starting
stopped
breakpoints
Num Enb What
  2 y   at gcd.rb:12

display

stack
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
    #1 at line gcd.rb:18

variables
a = 3
b = 5
self = main

source gcd.rb:6
if a > b
# # Test error annotations
# up 10
error-begin
Adjusting would put us beyond the oldest (initial) frame.

display

stack
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
    #1 at line gcd.rb:18

variables
a = 3
b = 5
self = main

# frame 100
error-begin
Adjusting would put us beyond the oldest (initial) frame.

display

stack
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
    #1 at line gcd.rb:18

variables
a = 3
b = 5
self = main

# break bogus:5
error-begin
No source file named bogus

Breakpoint 3 file bogus, line 5
breakpoints
Num Enb What
  2 y   at gcd.rb:12
  3 y   at bogus:5

display

# quit
