↑↑↑點擊上方藍字,回覆資料,10個G的驚喜
回溯變量更改
查看程序執行的每個狀態,包括變量的值
循環調試
pip install cyberbrain
code --install-extension laike9m.cyberbrain
from cyberbrain import trace
# As of now, you can only have one @trace decorator in the whole program.
# We may change this in version 2.0, see https://github.com/laike9m/Cyberbrain/discussions/73
@trace # Disable tracing with `@trace(disabled=True)`
def foo():
...
@app.route("/")
@trace
def hello_world():
x = [1, 2, 3]
return "Hello, World!"
由於實現非常複雜,因此存在一些已知的錯誤,不過隨着更新,應該會變得更好。
也可以加一下老胡的微信
圍觀朋友圈~~~
推薦閱讀
(點擊標題可跳轉閱讀)
老鐵,三連支持一下,好嗎?↓↓↓
本文分享自微信公衆號 - 機器學習算法與Python實戰(tjxj666)。
如有侵權,請聯繫 [email protected] 刪除。
本文參與“OSC源創計劃”,歡迎正在閱讀的你也加入,一起分享。