Python Debugger

Dieter Maurer dieter at handshake.de
Wed Aug 20 14:19:41 EDT 2003


llothar at web.de (Lothar Scholz) writes on 19 Aug 2003 13:20:12 -0700:
> alan.gauld at btinternet.com (Alan Gauld) wrote in message news:<3f412cf3.351547428 at news.blueyonder.co.uk>...
> > On 18 Aug 2003 12:34:09 -0700, llothar at web.de (Lothar Scholz)
> > wrote:
> > > Is there any python debugger that can
> > > 
> > > 1)  be used remotely
> > 
> > What do you mean by remotely? Debug a program running on a server
> > from a remote PC? 
> 
> Yes this is what i mean

For this, we use WingIDE, a commercial IDE for Python.

> > > 2)  can handle multiple threads

When you mean a debugger that can set breakpoints in any thread,
analyse the state of any thread etc, then this is unlikely.

  Python maintains the debugging hook in a thread specific data structure.
  The available API functions can only access the debugging hook
  in the own thread but not in a foreign thread.

  This implies that unless the start of a thread is customized
  (such that the debugging hook is immediately set on thread start)
  it is very difficult to debug a foreign thread (without
  a specialized C extension using internal implementation details of
  Pythons thread implementation).

Dieter




More information about the Python-list mailing list