如何将远程调试器附加到 Python 进程? [英] How do I attach a remote debugger to a Python process?
本文介绍了如何将远程调试器附加到 Python 进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我厌倦了插入
import pdb;pdb.set_trace()
进入我的 Python 程序并通过控制台调试.如何连接远程调试器并从文明的用户界面插入断点?
解决方案
使用
(来源:winpdb.org)
I'm tired of inserting
import pdb; pdb.set_trace()
lines into my Python programs and debugging through the console. How do I connect a remote debugger and insert breakpoints from a civilized user interface?
解决方案
use Winpdb. It 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)
这篇关于如何将远程调试器附加到 Python 进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文