如何单步调试扭曲?
我希望能够在 Netbeans 中调试 Punjab(一个扭曲的 Python 应用程序),以便我可以单步执行代码。我怎样才能做到这一点?或者,我怎样才能在不同的调试器中做到这一点?
I'd like to be able to debug Punjab, a twisted python application, in Netbeans so that I can step through the code. How can I do that? Alternatively, how could I do it in a different debugger?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您正在尝试调试扭曲的应用程序,因此您有几个选择:
如果您通过 twind 运行,则可以使用 -b 命令行选项:
你可以在你的twisted进程中运行manhole - 这允许你telnet到服务器并检查Python对象- http://twistedmatrix.com/documents/current/core/howto/telnet。 http://twistedmatrix.com/documents/current/core/
您可以选择手动运行 pdb - 请参阅:http://docs.python.org/library/pdb.html
Since you're trying to debug a twisted application, you have a few options:
If you're running via twistd you can use the -b command-line options:
You can run manhole in your twisted process - this allows you to telnet into the server and examine Python objects - http://twistedmatrix.com/documents/current/core/howto/telnet.html
You can optionally run pdb manually - see: http://docs.python.org/library/pdb.html