This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:python_quick_reference [2021/05/11 16:25] marcus.williams [Jupyter Notebook Markdown Tricks] |
tutorials:python_quick_reference [2021/05/13 16:03] marcus.williams [Python Debugger (PDB)] |
||
---|---|---|---|
Line 447: | Line 447: | ||
</code> | </code> | ||
+ | ===== Python Debugger (PDB) ===== | ||
+ | [[https://docs.python.org/3/library/pdb.html|ref]] | ||
+ | |||
+ | <code> | ||
+ | import pdb; pdb.set_trace() | ||
+ | </code> | ||
+ | |||
+ | ''n'' for next line; ''c'' to continue; ''s'' for step; ''exit'' for exit | ||
===== Other functions ===== | ===== Other functions ===== | ||
==== A ==== | ==== A ==== |