[racket-dev] Interactive Stepping

From: Stephen Bloch (bloch at adelphi.edu)
Date: Tue Feb 21 17:36:43 EST 2012

On Feb 21, 2012, at 5:00 PM, John Clements <clements at brinckerhoff.org> wrote:

> Perhaps the simplest would be to read in the student program, stick the current expression on the end of it, and run the stepper.  Perhaps it's just because I'm the implementer, but this seems error-prone.  Perhaps the right thing would simply be to pop up a dialog when the interactions window has focus and the student clicks the "step" button?

Here's a more radical solution, which I think I suggested several years ago but never followed up on.  The Stepper is not an action, but a toggle switch, whose setting affects both the Definitions pane (via Run) and the Interactions pane (repl).
>> A related wish-list item: I'd like to be able to select a section of code in Definitions, hit "Step", and single-step through only that part of the code.  Sure, go ahead and EVALUATE everything before that, but don't turn on the Stepper until you get to that section of code.
> Your wish is granted retroactively!
> Do exactly what you describe, and choose "Jump to Highlighted Code" from the stepper's "Jump to..." menu.

Talk about customer service!

Seriously, I had a feeling there was something like that, but didn't take the time to open DrR and look for it.

Stephen Bloch
sbloch at adelphi.edu


Posted on the dev mailing list.