• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# automatically load the pytoch-gdb extension.
2#
3# gdb automatically tries to load this file whenever it is executed from the
4# root of the pytorch repo, but by default it is not allowed to do so due to
5# security reasons. If you want to use pytorch-gdb, please add the following
6# line to your ~/.gdbinit (i.e., the .gdbinit file which is in your home
7# directory, NOT this file):
8#    add-auto-load-safe-path /path/to/pytorch/.gdbinit
9#
10# Alternatively, you can manually load the pytorch-gdb commands into your
11# existing gdb session by doing the following:
12#    (gdb) source /path/to/pytorch/tools/gdb/pytorch-gdb.py
13
14source tools/gdb/pytorch-gdb.py
15