Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit f76f2ce

Browse files
authored
docs: contributing: debugging: Add note on pdb
1 parent b759438 commit f76f2ce

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/contributing/debugging.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ if you see anything other than ``.egg-link`` behind the name of the ``dffml``
99
package you are working on, you probably need to delete that package and
1010
re-install it in development mode (``pip install -e``).
1111

12+
Pop open debugger on execption
13+
------------------------------
14+
15+
Run with pdb and input ``c`` to start execution.
16+
17+
- ``w`` to print stack trace.
18+
19+
- ``print(locals())`` to print all local variables.
20+
21+
.. code-block:: console
22+
23+
$ python -m pdb -m dffml --help
24+
(Pdb) c
25+
Traceback ...
26+
(Pdb) w
27+
(Pdb) print(locals())
28+
1229
Plugin Loading / Entrypoint Issues
1330
----------------------------------
1431

0 commit comments

Comments
 (0)