Capture crash reports
-
Is there a good library or tool to use with qt development that can capture screenshoots and stacktrace when a software crash. Then this crash report can be sent to developers as a bug report. It is useful to when debug problem that is done by other users of a software. I would like to integrate something like that in my application.
-
Bugtrap is one example but it seems to integrate with visual studio and not qcreator.
-
"google-breakpad":http://code.google.com/p/google-breakpad/ is a cross-platform solution (used by Mozilla products)
-
I found that it is a problem to use breakpad with mingw.
Is it true? -
"seems":http://code.google.com/p/google-breakpad/issues/detail?id=436 so... i wasn't aware of it.
-
you may also want to try "this":https://github.com/AlekSi/breakpad-qt, maybe it compiles with mingw already.
-
I've tried that but it doesn't work.
http://stackoverflow.com/questions/5225579/crash-reporting-for-mingw-applications
I think it is going to be difficult to find a library that works with mingw.
-
the only way i see now is, to use MSVC-Express compilers with QtCreator
-
http://spin.atomicobject.com/2013/01/13/exceptions-stack-traces-c/
I think I've to try and write a function that capture the stack myself.
-
When i write this test.
@
LONG WINAPI windows_exception_handler(EXCEPTION_POINTERS * ExceptionInfo)
{
fputs("Error: EXCEPTION_ACCESS_VIOLATION\n", stderr);
}int main(int argc, char * argv[])
{
SetUnhandledExceptionFilter(windows_exception_handler);
}
@It works inside qcreator that runs gdb, but not from the command line. I want the last part to work since I want to log the error that couse the program to crash.
-
I'm finally able to write out the addresses when a program crash (seg.fault). The last part is to generate a symbol file to be able to see where it crashed. Is there an easy way to generate that file with qmake?