I am using Dr. Racket and Racket for educational purposes (studying the SICP book). Dr. Racket is great and it has an awesome tool called "trace".
After using:
(require trace/racket)
(trace function)
It is possible to see what is happening in a recursive procedure.
However, this feature does not work with iterative procedures. I wish I could "see" what's happening in my code while it is being executed. I wish I could see the change in values of the state variables.
Is there an alternative tool or practice to have that kind of information in an iterative procedure?