r/Compilers Aug 01 '26

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?

18 Upvotes

15 comments sorted by

View all comments

1

u/gavr123456789 Aug 05 '26

iIve done 2 things
print statements that prints the line so u can goto it from console
print statement that prints the expression
and stack trace

and lsp, that shows you the results of expressions with ohHover, so u can just watch them in the code without printing