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 -- http://mail.python.org/mailman/listinfo/python-list