Python调试工具

 

Cyberbrain: Python debugging, redefined.

https://github.com/laike9m/Cyberbrain

https://github.com/cool-RR/PySnooper

 

https://pythontutor.com/

Pythontutor是一个在线可视化代码执行过程的的网站,支持的语言有 Python, JavaScript, C, C++, and Java等。

Python Tutor is for education purposes, you can't use it to debug your own programs. It's a brilliant tool for its purpose and I do it like it very much.

 

 

How does it compare to other tools?

PySnooper and Cyberbrain share the same goal of reducing programmers' work while debugging, with a fundamental difference: Cyberbrain traces and shows the sources of each variable change, while PySnooper only logs them. The differences should be pretty obvious after you tried both.
 
 
Debug visualizer and Cyberbrain have different goals. Debug visualizer visualizes data structures, while Cyberbrain visualizes program execution (but also lets you inspect values).
 
 
Python Tutor is for education purposes, you can't use it to debug your own programs. It's a brilliant tool for its purpose and I do it like it very much.
 
 
Cyberbrain is *NOT* static analyis. It's runtime tracing. Static analysis can't provide enough information for debugging.
 
posted @ 2022-12-14 17:59  sinferwu  阅读(170)  评论(0编辑  收藏  举报