diff options
Diffstat (limited to 'software')
-rw-r--r-- | software/python.page | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/software/python.page b/software/python.page index cd1fb0b..b0a01e0 100644 --- a/software/python.page +++ b/software/python.page @@ -114,3 +114,16 @@ To do interactive pdb debugging, simply: $ nosetests --pdb-failures +pdb +------- +To debug a script (interactive prompt on exception): + + python -m pdb myscript.py + +or in-line, always at a particular point: + + import pdb; pdb.set_trace() + +Use ipdb (debian: python-ipdb) instead of pdb to get a nicer IPython prompt. + + |