Running a single test under a debugger?

I want to run a single test under a debugger (rust-lldb in my case) to see why it fails. How would I go about doing that? I'd like to do this from my terminal so I don't need an IDE as a crutch.

1 Like

To start up lldb: rust-lldb ./target/debug/deps/the-big-long-name-you-see-when-you-run-cargo-test-92asdfjasdf89

Then to run your one test, in the lldb command prompt: r the_name_of_your_test


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.