Hacker News new | ask | show | jobs
by carlmr 1160 days ago
So true. With proper type driven design you basically don't need a debugger anymore.

But I still find it helpful when you need to check what's wrong in other people's code, since they might not design with types like I do.

1 comments

I find myself using the debugger to explore complex types created by procedural macros. You can use cargo to expand them andnpoke around, or dump the structure to debug if it derives it, but sometimes the debugger seems easier.

Also it can help find why something three crates deep into your dependency tree panicked.