A subcommand for cargo that launches the specified debugger on the output of a provided subcommand.
Install with cargo install cargo-debug
cargo debug test
to run the test binary in a debuggercargo debug --debugger=lldb build
to run the output binary in lldbcargo debug test -- --all
to run thecargo test
with the--all
argumentcargo debug test -- -- --ignored
to run the test binary in the debugger with the--ignored
argumentcargo debug --command-file=test.cmd build
to run the build binary in a debugger with the specified command filecargo debug --filter=X --no-run test
to build cargo test, filter for the output binary starting with X, and output the debug command without running