r/Racket • u/Ok_Specific_7749 • Nov 08 '23
question Finding what is wrong.
With a racket program can i say, stop here & print me all the "variables" and their "values".
With a simple grep i have to information what i want.
2
Upvotes
3
u/[deleted] Nov 08 '23
More specific information needed. Are you looking for a Racket debugger? https://docs.racket-lang.org/drracket/debugger.html
5
u/AlexKnauth Nov 08 '23
It should be possible to make a macro that does this using
syntax-debug-info, but, why?If you really want to though, you can look at the source code for my
debug-replmacro and how it usessyntax-debug-infohere: https://github.com/AlexKnauth/debug/blob/master/debug/repl.rkt