加速 python 2.6+ 上的 pydev 调试

发布于 2024-12-29 05:10:34 字数 587 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

分分钟 2025-01-05 05:10:34

是的,不幸的是,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文