debug icon indicating copy to clipboard operation
debug copied to clipboard

Runtime option to disable debug

Open winny- opened this issue 6 years ago • 3 comments

The ability to disable debug (or otherwise override debug's behavior) at runtime would be a great feature.

Downside: it might encourage people to start committing code with #R all over the place. ;-)

winny- avatar May 07 '19 23:05 winny-

So #lang debug/no-output isn't good enough because it's determined at compile time on a per-file basis?

AlexKnauth avatar May 08 '19 20:05 AlexKnauth

Ah! That's exactly what I am looking for. I didn't see this in the documentation, but now see the reader extension in the source tree upon closer inspection.

winny- avatar May 10 '19 18:05 winny-

So #lang debug/no-output isn't good enough because it's determined at compile time on a per-file basis?

My initial thought was perhaps one could add a parameter like debug-output? which suppresses debug output when #f, but I'm not sure if this is too clever for the intent of this package as a quick-and-dirty way to trace some Racket files.

winny- avatar May 10 '19 18:05 winny-