Thanks - I had forgotten about the repl operator that pg mentioned in that thread. I'll have to try that out.
I love the quote from Ron Garret about the benefits of a REPL.
"Debugging a program running on a $100M piece of hardware
that is 100 million miles away is an interesting experience. Having a
read-eval-print loop running on the spacecraft proved invaluable in
finding and fixing the problem."