Rust Programming - The State of Developer Ecosystem in 2023 Infographic (www.jetbrains.com)
from snaggen@programming.dev to rust@programming.dev on 22 Nov 2023 18:23
https://programming.dev/post/6253112

#rust

threaded - newest

robinm@programming.dev on 23 Nov 2023 00:29 collapse

I don’t agree with the sentiment that debuggers are sub-optimal for Rust and that’s why they are not used. In C++, I hop in gdb all the time, and I’m very fluent with it. But I never had the need for it in Rust. So they may be sub-optimals, IDK, I never had an issue in Rust where the best tool would have been a debugger.

I would never do printf debugging in C++ because it’s too complicated to do. In Rust with Display/Debug it’s a breeze. And my best debugger for Rust is the compiler itself. But most importantly, most of my bugs are caught at compile time. The few remaining one are logic error and best analyzed with logging, aka printf debugging, and not a debugger that can pause the execution.