Debugging using Racket mode in Emacs

Can one use the debug option in Racket Mode in Emacs to step through functions? I have been going through the documentation but struggling to get it to work.

If it works is there some site or video that explains the process better?

I didn't notice this until now. I see things faster when they're issues on the repo.

Basically it's just:

  1. M-x find-file some .rkt file.
  2. Type C-u C-u followed by however you prefer to invoke a run command (e.g. C-c C-c).
  3. Press SPACE to step.

The doc string, also available here, has more details and more shortcut keys beyond just single stepping.

I'm not sure what else to add? If you're still stuck, why not open an issue at Issues · greghendershott/racket-mode · GitHub -- explain what steps you're taking, and where it's not doing what you expect.

1 Like