在python 2.6+上加速pydev调试 [英] Speedup pydev debugging on python 2.6+
问题描述
PyDev 报告可以使用 psyco 来加快调试器的速度。但是,针对Windows的最新的psyco构建是for python 2.5。
是否可以使用较新的2.x版本(如2.6和2.7)加快pydev调试(有无psyco)的速度?
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?
在此相关尚未解决的问题,其中有对 pypy 的引用,可以以某种方式将其合并吗?
In this relevant yet unanswered question there's a reference to pypy, could that be encorporated somehow?
推荐答案
是的,不幸的是,此时psyco似乎不受支持(它的主要开发人员开始研究pypy)。
Yes, unfortunately, psyco seems unsupported at this time (its main developer went to work on pypy).
Pypy本身似乎是一个不错的选择,如果您的程序可以运行它(当前不支持许多模块,尤其是使用ac / c ++扩展名的模块,尽管如此)
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).
仍然,在大多数用例中,调试器应该足够快地工作(很多时间花费在优化上),并且在很少变慢的用例中,使用远程调试器( http:// pydev.org/manual_adv_remote_debugger.html )可以使用-这样程序可以以最大速度运行,直到到达代码中的断点为止。
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.
这篇关于在python 2.6+上加速pydev调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!