RUST_BACKTRACE=1 cargo run
thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)
RUST_BACKTRACE=1 cargo run
thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)
Try running it under gdb.
Is this the idiomatic way? I'm not afraid of gdb; I just stopped using it since switching from C/C++ to Rust.
I don't use a debugger with Rust very often, but when I do, I use gdb. As for whether its idiomatic, well, I don't know.