File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,25 @@ To use linters locally, run:
125
125
readability problems.
126
126
127
127
128
+ Running pip under a debugger
129
+ ============================
130
+
131
+ In order to debug pip's behavior, you can run it under a debugger like so:
132
+
133
+ .. code-block :: console
134
+
135
+ $ python -m pdb -m pip --debug ...
136
+
137
+
138
+ Replace the ``... `` with arguments you'd like to run pip with. Give PDB the
139
+ ``c `` ("continue") command afterwards, to run the process.
140
+
141
+ The ``--debug `` flag disables pip's exception handler, which would normally
142
+ catch all unhandled exceptions. With this flag, pip will let these exceptions
143
+ propagate outside of its main subroutine, letting them get caught by the
144
+ debugger. This way you'll be able to debug an exception post-mortem via PDB.
145
+
146
+
128
147
Building Documentation
129
148
======================
130
149
You can’t perform that action at this time.
0 commit comments