# Debugging using Racket mode in Emacs

**URL:** <https://racket.discourse.group/t/debugging-using-racket-mode-in-emacs/2606>\
**Category:** Questions & Answers\
**Tags:** question\
**Created:** [December 14, 2023, 4:58am UTC](https://racket.discourse.group/t/debugging-using-racket-mode-in-emacs/2606 "2023-12-14T04:58:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameertj](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sameertj](https://racket.discourse.group/u/sameertj)\
**Post date:** [December 14, 2023, 4:58am UTC](https://racket.discourse.group/t/debugging-using-racket-mode-in-emacs/2606/1 "2023-12-14T04:58:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![greghendershott](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/greghendershott/32/98_2.png) [@greghendershott](https://racket.discourse.group/u/greghendershott)\
**Post date:** [December 20, 2023, 2:02am UTC](https://racket.discourse.group/t/debugging-using-racket-mode-in-emacs/2606/2 "2023-12-20T02:02:12Z")

</div>

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](https://www.racket-mode.com/#racket_002ddebug_002dmode), 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](https://github.com/greghendershott/racket-mode/issues) -- explain what steps you're taking, and where it's not doing what you expect.
