3 ms·
The state of Rust debugging is atrocious. No expression evaluators work with traits, and their implementations are the majority of all Rust code. Until somebod
by lostmsu 5y ago
The state of Rust debugging is atrocious. No expression evaluators work with traits, and their implementations are the majority of all Rust code.
Until somebody fixes this, I don't see Rust taking on any mainstream languages.
- tialaramex 5y agoHa. I hadn't even thought about this. In several months of writing Rust I have never once reached for a debugger, but you're right, the debuggers, at least the ones I have, don't understand how to evaluate Traits. Maybe some day I'll write a Rust program that has a bug worth using a debugger on and I'll remember this.
- lostmsu 5y agoWell I hit this on my 2nd week of Rust trying to debug GPT-1 implementation in tch-rs. Sprinkling code with extra variables holding debug values I'd normally put as expressions in IDE Watches and restarting only works until assert violation happens after 5+ mins of program execution.