Skip to content

Instantly share code, notes, and snippets.

@vadimkantorov
Last active September 24, 2023 23:04
Show Gist options
  • Save vadimkantorov/cad0c8abba3d9a28a48710968f261d77 to your computer and use it in GitHub Desktop.
Save vadimkantorov/cad0c8abba3d9a28a48710968f261d77 to your computer and use it in GitHub Desktop.
A Bash alias to run a Torch script under gdb
# Usage:
# gdbpython script.py my_script_arguments
# gdbbacktrace ./my_program arg1 arg2
alias gdbpython="gdb -ex run --args python"
alias gdbbacktrace="gdb -batch -ex run -ex bt --args"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment