[PyQt] Forcing stacktrace in program
arve.knudsen at gmail.com
Sat Sep 15 17:31:10 BST 2007
On 9/14/07, Matt Newell <newellm at blur.com> wrote:
> On Friday 14 September 2007 07:14, Arve Knudsen wrote:
> > I want to be able to get a stack trace of my hanging PyQt application,
> > anyone have any tips on how this can be done in a cross-platform way? I
> > catch SIGINT (and then write the trace before quitting) but the program
> > isn't necessarily run in a terminal, so I need some way of killing it
> > the GUI (e.g., End Task on Windows). I have no idea how to catch the
> > resulting from say End Task on Windows however. Any practical insight
> > be very welcome.
> DrMingw might be able to help. I don't know if it can catch a kill event,
> it'll log a stack trace to a file if your program crashes. You can
> hack it to also log when your program is killed.
> I'm not sure this is what I need. I need some way to react to a forced
termination of the program, so that I can log the current stack trace(s). I
can catch the interrupt signal (from Ctrl+C), but this doesn't help if the
program isn't run in a terminal.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt