5

异常抛出后能穿越回代码执行前 debug 吗?

 2 years ago
source link: https://www.v2ex.com/t/818093
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

异常抛出后能穿越回代码执行前 debug 吗?

  AndyAO · 17 小时 45 分钟前 · 630 次点击

最近才发现 python pdb.pm() 可以穿越回异常发生前进入调试模式,之前从来没想到异常已经发生,还能够重回现场。

……也许是自己比较菜,之前没见过这么用的


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK