Skip to content

Instantly share code, notes, and snippets.

@gwpl
Last active December 8, 2022 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwpl/63f648f4741d270141c408671f518b47 to your computer and use it in GitHub Desktop.
Save gwpl/63f648f4741d270141c408671f518b47 to your computer and use it in GitHub Desktop.
rust-gdb - easy way to run rust-scripts with gdb
# https://github.com/fornwall/rust-script/issues/54
# regarding rust-script : https://rust-script.org/ => https://github.com/fornwall/rust-script
rust-gdb $(rust-script --debug -o ./my_rust_script.rs --version 2>&1 | rg -w '.+Running `(.+) --version`' -r '$1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment