rust-script
rust-script copied to clipboard
rust-gdb - easy way to run rust-scripts with gdb
rust-gdb -
Could you please add some feature to make it easy to run rust-scripts with gdb
?
I've found flag --debug
to build in debug mode. However it : 1. also runs script and 2. still I need to sk cache directory looking for path to debug build binary.
What about flag (maybe with shorter name) --build-only-and-return-absolute-path-to-binary
?
That way I could run rust-gdb "$(rust-script --debug --build-only-and-return-absolute-path-to-binary my_script.rs)"
to comfortably run script in debugger ?
rust-gdb $(rust-script --debug -o ./my_rust_script.rs --version 2>&1 | rg -w '.+Running `(.+) --version`' -r '$1')