|(require htdp-trace)||package: htdp-trace|
Racket has a useful tracing tool. Unfortunately it does not work in Beginning Student. This package provides a wrapper that can be used in the HtDP Languages.
(define/trace (name param ...) body)
Behaves the same as define, but whenever the function name is applied, the values of its parameters will be printed to the screen. When the function produces a value, that value will also be printed.