加速 python 2.6+ 上的 pydev 调试
PyDev 报告它可以使用 psyco 来加速其调试器。然而,我发现的 Windows 的最新 psyco 版本是对于Python 2.5。
有没有办法使用较新的 2.x 版本(例如 2.6 和 2.7)加速 pydev 调试(无论有没有 psyco)?
在这个相关但尚未解答的问题 有对 pypy 的引用,可以以某种方式合并吗?
PyDev reports it can use psyco to speed its debugger. However the most up-to-date psyco build I found for windows was for python 2.5.
Is there a way to speed-up pydev debugging, either with or without psyco, with newer 2.x versions such as 2.6 and 2.7?
In this relevant yet unanswered question there's a reference to pypy, could that be encorporated somehow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,不幸的是,psyco 目前似乎不受支持(它的主要开发人员转向了 pypy)。
如果你的程序可以用它运行,Pypy 本身似乎是一个不错的选择(目前它不支持许多模块——尤其是使用 ac/c++ 扩展的模块,因此,尽管将来可能会改变,但目前对于许多项目来说这是不现实的) 。
尽管如此,在大多数用例中,调试器应该足够快地工作(花费大量时间对其进行优化),并且在很少的用例中它变得缓慢,远程调试器( http://pydev.org/manual_adv_remote_debugger.html )可以使用——这样程序可以以最大速度运行,直到到达代码中的断点。
Yes, unfortunately, psyco seems unsupported at this time (its main developer went to work on pypy).
Pypy itself seems like a good choice if your program can run with it (many modules are currently unsupported in it -- especially modules using a c/c++ extension, so, although that may change in the future, it's unrealistic for many projects right now).
Still, in most of the use-cases, the debugger should work fast enough (a lot of time was spent optimizing it), and in the seldom use cases where it gets slow, the Remote Debugger ( http://pydev.org/manual_adv_remote_debugger.html ) can be used -- that way the program can run at max speed until it reaches a breakpoint in code.