Took me a while to figure out how to debug a hanging Rust test. The best invocation seems to be:
$ RUST_TEST_THREADS=1 cargo test -- --nocapture
This will print test names before execution, so you can see where you're hanging. --nocapture lets you see print output immediately.
I find myself using a "splatter then clean up" technique when working with code.
I add a ton of prints/logs/asserts/type annotations until I've found the issue. I then throw them all away!
It feels like redundant work, but I don't have a nicer solution.
Print debugging remains an extremely common debugging technique. This makes me wonder: what's the state-of-the-art for print debugging?
Rust's debug! macro prints a bunch of helpful information (variable name, line number) but there must be other nice tools in this space.