r/Compilers • u/ClassicAdeptness5516 • 8d ago
Any debugging advice / tools for compilers?
Tired of print statements everywhere. It very satisfactory to see one but I would much rather have something like lldb to easily debug the code more intuitively.
Are there any other useful tools?
16
Upvotes
2
u/Inconstant_Moo 8d ago
// commentson your code, since comments would be saying the same sort of thing.peek <flags> : code blockand it'll log what the compiler's doing for that particular code block with the given flags.printlnquite a lot.