Stream: general

Topic: code, debugger, only show *.rs files


zeroexcuses (May 11 2020 at 17:50, on Zulip):

When using the debugger (currently CodeLLB, but willing to switch) and hitting the "Debug" button, the stack frames are shown on the LHS. Some frames correspond to *.rs files. Some correspond to assembly object files. Is there a way to have it only show stack frames corresponding ot *.rs files (preferably only ones in current workspace).

Lokathor (May 11 2020 at 18:49, on Zulip):

Do you mean the debugger within VS Code?

zeroexcuses (May 11 2020 at 18:52, on Zulip):

Yes, the debugger within VS code. In a *.rs file, at a #[test] fn (...) { ... } block, two clickable links pop up "run unit test" | "debug"

clicking on "debug" runs the same unit test, except the LHS of vs code now shows the stack frames at the time of the todo!/panic1

my main problem is that it's showing lots of frames where clicking on it = gets me object code of external crates; I only want the stack frames corresponding to *.rs files in the current workspace

Last update: Jun 05 2020 at 22:55UTC