Python Debugger

L

Lothar Scholz

Is there any python debugger that can

1) be used remotely
2) can handle multiple threads

I checked Eric, IDLE and Wing-IDE. None of them can do this.
Any other recommendations?
 
A

Alan Gauld

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? Or telnet to the server and display the debug
session on the PC?

If the latter then the standard pdb module works just fine.
2) can handle multiple threads

Never tried that one, although pdb might work...

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
 
M

Mike Rovner

Lothar said:
(e-mail address removed) (Alan Gauld) wrote in message


Yes this is what i mean

Successfully done that with WingIDE (server on Solaris, debug from PC)

Debugging multi-thread python apps is being discussed in another topic.

Mike
 
D

Dieter Maurer

Yes this is what i mean

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

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
 
S

Skip Montanaro

David> There was some talk about enhancing this in the 2.3 timeframe,
David> but I don't think it made it in.

I thought I saw one or two checkins by Jeremy Hylton in this regard. I
don't recall if it was before or after the 2.3 release, but I'm pretty sure
there's more in there now (in CVS at least) than there was in 2.2.

Skip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,830
Latest member
ZADIva7383

Latest Threads

Top