cargo-debugger

Crates.iocargo-debugger
lib.rscargo-debugger
version0.1.1
created_at2025-02-05 23:47:22.485647+00
updated_at2025-02-06 00:44:07.454819+00
descriptionLaunch your cargo build with the vscode debugger attached
homepage
repositoryhttps://github.com/jkelleyrtp/cargo-debugger
max_upload_size
id1544880
size3,444,636
Jonathan Kelley (jkelleyrtp)

documentation

README

cargo-debugger: easily launch rust executables with vscode's debugger

cargo-debugger is a simple CLI tool that launches your cargo build with the vscode debugger attached.

demo.gif

Installation

cargo install cargo-debugger

Usage

cdb is an alias to cargo rustc --message-format json-diagnostic-rendered-ansi ... - so simply pass normal cargo arguments to cdb.

Any extra args after -- will be passed to the executable under debug.

cargo debugger --bin dioxus-cli -- serve --verbose --experimental-bundle-split --trace --release

This will launch your cargo build with the vscode debugger attached.

Currently, we only support cargo rustc equivalents. We also only launch with the code-lldb debugger for vscode. If you'd like to use another editor or debugger, feel free to contribute!

Tips

Future Ideas

License

MIT

Commit count: 11

cargo fmt