在不使用 Eclipse/VScode 的情況下,如何設置中斷點

在想要中斷的地方,插入以下程式碼:

from Iuppiter import debug
debug.breakpoint()

即會在執行到此行的時候自動開啟 PyCrust 讓你觀看變數值,及實驗。

Was this article helpful? Votes: 0
Article details:
Published date: 30/08/2017 5:57AM
Last updated: 30/08/2017 5:58AM (Olivia - olivia.wu@nuwainfo.com)
Share article: 
Author: Olivia (olivia.wu@nuwainfo.com)
中斷 | Eclipse | VScode |