I have a python program running as a windows service which, in my opinion, catches all exceptions. In my development environment, I cannot reproduce any situation where an exception is not logged, when the program crashes. Except in two cases: the program is killed through the task manager or the computer shuts down.
However, in the target environment (Windows 2000 with all the necessary libraries and python installed), the Windows service unexpectedly shuts down ca. 4 minutes after a reboot without registering an exception or cause of failure. The environment is definitely not disconnected.
Does anyone have a suggestion to determine what killed the python program?
EDIT: I cannot use the debugger in the target environment (as well as at the production level). Therefore, I need a way to register the cause of the failure. So, I am looking for tools or methods for recording additional information at runtime (or time of failure) that can be used for analysis after opening.
source share