1

如何高效地调试 py 程序?

 1 year ago
source link: https://www.v2ex.com/t/885154
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.
neoserver,ios ssh client

V2EX  ›  程序员

如何高效地调试 py 程序?

  JYLu · 6h 6m ago · 1420 views
实现一些数值计算的算法,主要的精力都集中在把算法中的数学语言转化成编程代码了。代码质量就不高。常会出现很多小错误。py 没有编译,找错只能靠不断运行发现,但是这样一次只能改一个 bug 。每次调试都要比写下程序本身花数倍的时间,对精力是极大的损耗。
还有除了使用 print()语句,有没有什么好的调试技巧,可以使得调试更高效?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK