Python 提供類似gdb的除錯模組-pdb. 使用方法如下 python -m pdb 檔案名稱.py. 進入pdb後. 常用命令如下. b 數字- 設置中斷點. r - 繼續執行,直到當前函式返回.
確定! 回上一頁