Modifying Your Program
You can put extra instructions into your program, such as:
...
say "Checkpoint A. x =" x
...
say "End of first routine"
...
...
say "Checkpoint A. x =" x
...
say "End of first routine"
...