[racket-dev] Interactive Stepping

From: John Clements (clements at brinckerhoff.org)
Date: Tue Feb 21 17:00:15 EST 2012

On Feb 21, 2012, at 1:44 PM, Stephen Bloch wrote:

> The latest student query on "users at racket-lang" comes from a student who typed an expression at the prompt and hit "Step" to single-step its evaluation.  Which is a reasonable thing to do, and one I've wished for years were possible.  How difficult would it be?

I can imagine several different meanings for this. 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?

> 
> 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.

Let me know if I've misunderstood your request.

John


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20120221/c4654e01/attachment.p7s>

Posted on the dev mailing list.