Hynek Hanke wrote:
Hello,
please, how do I create a pythonic traceback from a python process that
hangs and is not running in an interpreter that I executed manually
or it is but doesn't react on CTRL-C etc? I'm trying to debug a server
implemented in Python, so I need some analog of 'gdb
Klaas wrote:
Hynek Hanke wrote:
Hello,
please, how do I create a pythonic traceback from a python process that
hangs and is not running in an interpreter that I executed manually
or it is but doesn't react on CTRL-C etc? I'm trying to debug a server
implemented in Python, so I need some
On 6 ene, 19:45, Hynek Hanke [EMAIL PROTECTED] wrote:
please, how do I create a pythonic traceback from a python process that
hangs and is not running in an interpreter that I executed manually
or it is but doesn't react on CTRL-C etc? I'm trying to debug a server
implemented in Python, so I
Hello,
please, how do I create a pythonic traceback from a python process that
hangs and is not running in an interpreter that I executed manually
or it is but doesn't react on CTRL-C etc? I'm trying to debug a server
implemented in Python, so I need some analog of 'gdb attach' for C.
On Saturday 06 January 2007 16:45, Hynek Hanke wrote:
Hello,
please, how do I create a pythonic traceback from a python process that
hangs and is not running in an interpreter that I executed manually
or it is but doesn't react on CTRL-C etc? I'm trying to debug a server
implemented in
Heh, I kinda messed up the code there. It should be:
import sys
log_file = open('errors.log', 'w')
sys.stderr = log_file
your code
log_file.close()
As for the Ctrl-C, you can catch that when KeyboardInterrupt exception is
raised.
- Jonathan
--