471,330 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

pdb attach?

Hello,

please, is there something like 'attach' in pdb yet? My application uses
threads
and when it freezes (e.g. due to a deadlock situation), I'd like to get
the traceback
of all threads and inspect at which point did the application get into
problems.
Or could I send a signal to such a python process so that it would
output backtraces
from all threads before terminating?

Because currently, if a thread runs into deadlock problems (or a thread
fails on
an exception and the other thread can't join it), I have no way of
determining
what went wrong.

Such processes are not possible to terminate via CTRL-C in the
interpreter, so
I can't get the backtrace this way. Furthermore, I also need to debug
subprocesses,
so these are difficult to invoke interactively.

I'm happy for any suggestions.

Thank you,
Hynek Hanke
Sep 20 '07 #1
1 4110
Nir
On Sep 20, 3:26 pm, Hynek Hanke <ha...@brailcom.orgwrote:
Hello,

please, is there something like 'attach' in pdb yet? My application uses
threads
and when it freezes (e.g. due to a deadlock situation), I'd like to get
the traceback
of all threads and inspect at which point did the application get into
problems.
Or could I send a signal to such a python process so that it would
output backtraces
from all threads before terminating?

Because currently, if a thread runs into deadlock problems (or a thread
fails on
an exception and the other thread can't join it), I have no way of
determining
what went wrong.

Such processes are not possible to terminate via CTRL-C in the
interpreter, so
I can't get the backtrace this way. Furthermore, I also need todebug
subprocesses,
so these are difficult to invoke interactively.

I'm happy for any suggestions.

Thank you,
Hynek Hanke
Try to debug with winpdb:
http://www.digitalpeers.com/pythondebugger/

Any feedback will be appreciated.

Sep 21 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by gen_www | last post: by
4 posts views Thread by donall | last post: by
4 posts views Thread by John A. Bailo | last post: by
9 posts views Thread by ME | last post: by
1 post views Thread by Martin Simard | last post: by
6 posts views Thread by GaryDean | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.