Sha256: 42693819a645659eea5c33790af782e09129083b45f4416f7a74173ec934972a

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

gcd.rb:4
def gcd(a, b)
# # ***************************************************
# # This tests step, next, finish and continue
# # ***************************************************
# set debuggertesting on
Currently testing the debugger is on.
# set callstyle last
Frame call-display style is last.
# next
gcd.rb:18
gcd(3,5)
# where
--> #0 at line gcd.rb:18
# step a
Step argument 'a' needs to be a number.
# set different on
different-line stepping is on.
# step- ; step-
gcd.rb:6
if a > b
# set diff off
different-line stepping is off.
# where
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
    #1 at line gcd.rb:18
# n 2
gcd.rb:10
return nil if a <= 0
# step+
gcd.rb:12
if a == 1 or b-a == 0
# where
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:12
    #1 at line gcd.rb:18
# step 3
gcd.rb:6
if a > b
# step+
gcd.rb:10
return nil if a <= 0
# where
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:10
    #1 Object.-(a#Fixnum, b#Fixnum) at line gcd.rb:15
    #2 at line gcd.rb:18
# next+	
gcd.rb:12
if a == 1 or b-a == 0
# # finish
# quit

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-debug-0.10.5.rc1 test/data/stepping.right