How do I attach a remote debugger to a Python process?

后端 未结 5 1211
慢半拍i
慢半拍i 2020-12-02 05:28

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 rem

5条回答
  •  孤街浪徒
    2020-12-02 05:50

    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)

提交回复
热议问题