Last active
July 29, 2024 11:02
-
-
Save vadimkantorov/cad0c8abba3d9a28a48710968f261d77 to your computer and use it in GitHub Desktop.
A Bash alias to run a Python script under gdb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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