3 ms·
Debuggers are not only useful for actual debugging as in 'finding and fixing bugs', they are basically interactive program state explorers. Also "once it compil
by flohofwoe 2y ago
Debuggers are not only useful for actual debugging as in 'finding and fixing bugs', they are basically interactive program state explorers. Also "once it compiles, it works" is true for every programming language unless you're a complete newbie. The interesting bugs usually only manifest after your code is hammered by actual users and/or realworld data.
- pepa65 2y agoYou're obviously not a Rust programmer.
- flohofwoe 2y agoRust only protects from a very small subset of bugs (memory corruption issues and data races) but not from logic bugs which are far more common.
- Animats 2y agoRust protects against undefined behavior. This is enough that programs either panic in a well-defined way, or continue to run well enough that logging works.
- flohofwoe 2y agoNot having UB isn't exactly unique to Rust though (Rust does have some UB btw it's just not as easy to encounter as in C or C++).