Re: [racket-users] Can I use the macro stepper to debug an infinite expansion loop?

2019-07-29 Thread Ryan Culpepper
The macro stepper *should* pop up a dialog after a certain (large) number of steps and ask if you want to interrupt it and see the expansion up to that point. For example, try this: #lang racket (define-syntax-rule (m) (m)) (m) The dialog should show up in a second or two. It can't

Re: [racket-users] Can I use the macro stepper to debug an infinite expansion loop?

2019-07-29 Thread Leif Andersen
Unfortunately no. The macro stepper requires macros to fully expand before it can let you step through them. You can, however, use this `obs.rkt` file (attached) to debug macros as they are expanding, and will print the current expanding syntax to stdout. While not the most convenient thing in

[racket-users] Can I use the macro stepper to debug an infinite expansion loop?

2019-07-29 Thread William J. Bowman
Can I use the macro stepper to debug a bug in some code that seems to be macro expanding infinitely? Is it in a sandbox to prevent infinite macro expansion or something? It looks like DrRacket's background expander allows me to kill expansion after a short time, but when launching the macro