What features would a *perfect* Python debugger have? [closed]

房东的猫 提交于 2019-12-11 03:33:13

问题


Please tell me which features you wish your current Python debugger had. I'm creating a new Python IDE/debugger and am looking forward to challenging requests!


回答1:


Forgive me for the shameless functional programming plug, but...

The ability to step backwards.




回答2:


I use winpdb and I like it very much. I think a new debugger would need to have at least its features. It has some GUI nuisiances though, so maybe you fix it or take some ideas from it to write your own.

Winpdb is a platform independent graphical GPL Python debugger with support for remote debugging over a network, multiple threads, namespace modification, embedded debugging, encrypted communication and is up to 20 times faster than pdb.

Features:

  • GPL license. Winpdb is Free Software.
  • Compatible with CPython 2.3 through 2.6 and Python 3000
  • Compatible with wxPython 2.6 through 2.8
  • Platform independent, and tested on Ubuntu Gutsy and Windows XP.
  • User Interfaces: rpdb2 is console based, while winpdb requires wxPython 2.6 or later.


(source: winpdb.org)




回答3:


The #1 debug feature for me (that my current IDE, Wing, does happen to have) is the ability to drop into a python interpreter and run arbitrary python code when at a breakpoint. Reminds me of using Smalltalk back in the day.

Ability to execute code in local scope is incredibly useful, especially in contrast to working in C++ when it can sometimes be a fight to inspect a local variable.




回答4:


Ability to step through expression evaluation and intuitive visualization of call stack like in Thonny (http://thonny.org)



来源:https://stackoverflow.com/questions/600401/what-features-would-a-perfect-python-debugger-have

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!