rust-script icon indicating copy to clipboard operation
rust-script copied to clipboard

rust-gdb - easy way to run rust-scripts with gdb

Open gwpl opened this issue 2 years ago • 1 comments

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 ?

gwpl avatar May 16 '22 09:05 gwpl

 rust-gdb $(rust-script --debug -o  ./my_rust_script.rs --version 2>&1  | rg -w '.+Running `(.+) --version`' -r '$1')

0x003e avatar Jun 07 '22 18:06 0x003e