Debugging of a long running process under Windows

Tim Golden mail at timgolden.me.uk
Thu Aug 21 11:10:28 CEST 2008


R. Bernstein wrote:
> I don't know how well Microsoft Windows allows for sending a process a
> signal in Python, but if the Python signal module works reasonably
> well on Microsoft Windows, then reread
> http://bashdb.sourceforge.net/pydb/pydb/lib/node38.html

The answer is: not terribly well. (Or, rather: in a very
limited way). You should, however, be able to make use
of the SetConsoleCtrlHandler win32 api which is exposed
by pywin32's win32api module, or could be accessed via
ctypes:

http://timgolden.me.uk/pywin32-docs/win32api__SetConsoleCtrlHandler_meth.html
http://msdn.microsoft.com/en-us/library/ms686016(VS.85).aspx

TJG



More information about the Python-list mailing list