Wednesday, November 16, 2016

How to debug Python script from CLI

To debug script run below command in console:
python -m pdb test.py


bedugging options:
n for next line
s for go inside method
q for to quit debugging

creating break point:
b cm_utils.py:98  -  creating break point
c -  to go next break point

No comments: