With a fresh Rust install stack backtrace reports source locations that look like temporary files or perhaps memory pointers + some meta info. That’s not very helpful and doesn’t match the Book. What magic do I need to perform to see source code locations that point to actual source files? See copy-pasta below.
While we are at it. Is there a way to filter out runtime frames like “panic”, “backtrace” etc that have no relation to the code being run? Actual code is being sandwiched between bookkeeping that doesn’t help any, so you have to carefully eyeball the entire backtrace to even figure out where your code is.
9: <usize as core::slice::SliceIndex<[T]>>::index at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libcore/slice/mod.rs:2455 10: core::slice::<impl core::ops::index::Index<I> for [T]>::index at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libcore/slice/mod.rs:2323 11: <alloc::vec::Vec<T> as core::ops::index::Index<I>>::index at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/liballoc/vec.rs:1678 12: try_rust::main at src/main.rs:4