mirror of
https://github.com/pytorch/pytorch.git
synced 2026-10-25 18:53:39 +08:00
[BE] Fix PyTorch gdb-extension initialization commentary information Contributed by Benedikt Johannes Pull Request resolved: https://github.com/pytorch/pytorch/pull/174563 Approved by: https://github.com/Skylion007, https://github.com/malfet
15 lines
654 B
Plaintext
15 lines
654 B
Plaintext
# automatically load the pytorch-gdb extension.
|
|
#
|
|
# gdb automatically tries to load this file whenever it is executed from the
|
|
# root of the pytorch repo, but by default it is not allowed to do so due to
|
|
# security reasons. If you want to use pytorch-gdb, please add the following
|
|
# line to your ~/.gdbinit (i.e., the .gdbinit file which is in your home
|
|
# directory, NOT this file):
|
|
# add-auto-load-safe-path /path/to/pytorch/.gdbinit
|
|
#
|
|
# Alternatively, you can manually load the pytorch-gdb commands into your
|
|
# existing gdb session by doing the following:
|
|
# (gdb) source /path/to/pytorch/tools/gdb/pytorch-gdb.py
|
|
|
|
source tools/gdb/pytorch-gdb.py
|