> On Apr 22, 2015, at 1:31 PM, s.ji...@berkeley.edu wrote: > > I was wondering if Racket, or any other Scheme interpreter, had a debugging > library similar to bdb/pdb for Python. > > There is an environment diagram visualizer at http://www.pythontutor.com/ > which uses BDB/PDB to generate a JSON trace which it feeds to the frontend. I > see that there is a rudimentary trace, and something more fully featured in > DrRacket, but is there any library that can be used by a trace generating > program? I want to write a Scheme backend for OPT.
What an excellent idea! I think the right approach here is to build on the stepper’s model; it should already include all of the information that you need to build this trace (well, almost… there may be heap identity issues). Indeed, I had an undergraduate who worked on this a few years back. He didn’t get very far, I’m sorry to say. Would you like me to send you his code? I’ll have to check with him first. John Clements -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.