python 除錯器 pdb

http://fcamel-life.blogspot.tw/2011/07/python-debug.html

python -m pdb YOUR_PYTHON

輸入 n 開始單步執行,重複 enter 就可以一直重複單步執行的動作

輸入 l 列出目前所在行

輸入 p 後面接要印出的變數名稱

可以直接輸入運算式修改變數