Less verbose backtrace?

Sometimes (particularly in prototype code) I'll hit a panic of some kind without a helpful message, and I have to enable backtrace to see exactly where it happened.

But if I enable RUST_BACKTRACE all the time, I get a full page of output where the only interesting line is the one in the middle telling me where in my code the panic occurred.

Is there any setting that will give me a backtrace that only shows my own code?

5 Likes