xref: /aosp_15_r20/external/pytorch/.lldbinit (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1*da0073e9SAndroid Build Coastguard Worker# automatically load the pytorch_lldb extension.
2*da0073e9SAndroid Build Coastguard Worker#
3*da0073e9SAndroid Build Coastguard Worker# lldb automatically tries to load this file whenever it is executed from the
4*da0073e9SAndroid Build Coastguard Worker# root of the pytorch repo, but by default it is not allowed to do so due to
5*da0073e9SAndroid Build Coastguard Worker# security reasons. If you want to use pytorch_lldb, please add the following
6*da0073e9SAndroid Build Coastguard Worker# line to your ~/.lldbinit (i.e., the .lldbinit file which is in your home
7*da0073e9SAndroid Build Coastguard Worker# directory, NOT this file):
8*da0073e9SAndroid Build Coastguard Worker#    settings set target.load-cwd-lldbinit true
9*da0073e9SAndroid Build Coastguard Worker#    setting set escape-non-printables false
10*da0073e9SAndroid Build Coastguard Worker#
11*da0073e9SAndroid Build Coastguard Worker# Alternatively, you can manually load the pytorch_lldb  commands into your
12*da0073e9SAndroid Build Coastguard Worker# existing lldb session by doing the following:
13*da0073e9SAndroid Build Coastguard Worker#    (lldb) command script import tools/lldb/pytorch_lldb.py
14*da0073e9SAndroid Build Coastguard Worker
15*da0073e9SAndroid Build Coastguard Workercommand script import tools/lldb/pytorch_lldb.py
16*da0073e9SAndroid Build Coastguard Workersetting set escape-non-printables false
17*da0073e9SAndroid Build Coastguard Workertype category enable torch
18