Rust's dbg! macro (new in 1.32) is delightful. You write dbg!(my_var) and you get a print statement that writes:
[src/my_file.rs:123] my_var = "value of my_var"
It's a huge ergonomic help when debugging!
miniblog.
Related Posts
Chekhov's repro: If a line of code is included in a bug report, it should contribute to the debugging somewhere.
Chekhov's repro: If a line of code is included in a bug report, it should contribute to the debugging somewhere.
I'm playing with DOT output for debugging syntax trees from difftastic. Here's an F# snippet, the Debug representation, and the DOT rendered as an image.
I'm pleased with the information density on the graphic, but we'll see how often I end up using it.





