Is there something wrong with the current debugger? When I do a leap it appears to be doing the same thing as a step. Compare the following with http://www.iro.umontreal.ca/~gambit/doc/gambit-c_5.html#IDX121
% gsi Gambit Version 4.0 beta 20
(define (fact n) (if (< n 2) 1 (* n (fact (- n 1))))) (step-level-set! 1) (begin (step) (fact 5))
*** STOPPED IN (console)@3.15 1> ,s | > (fact 5) *** STOPPED IN fact, (console)@1.22 1> ,s | | > (< n 2) | | #f *** STOPPED IN fact, (console)@1.43 1> ,s | | > (- n 1) | | 4 *** STOPPED IN fact, (console)@1.37 1> ,s | | > (fact (- n 1)) *** STOPPED IN fact, (console)@1.22 1> ,s | | | > (< n 2) | | | #f *** STOPPED IN fact, (console)@1.43 1> ,s | | | > (- n 1) | | | 3 *** STOPPED IN fact, (console)@1.37 1> ,l | | | > (fact (- n 1)) *** STOPPED IN fact, (console)@1.22 1> ,l | | | | > (< n 2) | | | | #f *** STOPPED IN fact, (console)@1.43 1> ,l | | | | > (- n 1) | | | | 2 *** STOPPED IN fact, (console)@1.37 1>
Afficher les réponses par date