27 ms·
Is a debugger really a hard requirement for learning a language?
by Scarbutt 9y ago
Is a debugger really a hard requirement for learning a language?
- dboreham 9y agoLearning no. Using, I think yes.
- burntsushi 9y agoFor what it's worth, while I would regularly use a debugger for C code, I've never once tried or had the urge to use a debugger on Rust code. (I've been using Rust for almost 4 years.)
- accatyyc 9y agoI usually don’t use the debugger to debug language features, but rather my own logic. It’s very useful to step and inspect parameters when you can’t really see your own logic errors.
- vvanders 9y agoI have to say that my own experience over the last two years matches burntsusih's pretty close. In the case of logic stuff Tagged Union/Enum types help me force logic at compile time. If I've got a particularly intractable logic problem a good coverage of unit tests works well to flush out any bugs and give me confidence when it comes to refactoring. There's been a handful of times that I've wanted to reach for the debugger but a couple inspect()/println!() calls did the trick in those cases.