-
pdb
(The Python Debugger)
鎖定
- 軟件名稱
- The Python Debugger
- 開發商
- Python Software Foundation (PSF)
- 軟件平台
- 跨平台(Windows、Linux、Mac OS X)
- 軟件語言
- Python
- 軟件授權
- PSF License Agreement
>>> import pdb >>> import mymodule >>> pdb.run('mymodule.test()') > <string>(0)?() (Pdb) continue > <string>(1)?() (Pdb) continue NameError: 'spam' > <string>(1)?() (Pdb)
pdb.py也可以像腳本一樣調用,用於調試其它腳本,例如:
python -m pdb myscript.py
- 參考資料
-
- 1. 26.2. pdb — The Python Debugger .Python 2.7.12 documentation[引用日期2016-09-23]
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:2次歷史版本
- 最近更新: 君伟junwei521