Do you know if there is a tool in Windows that is able to start a C++ application and, when there is an exception, is able to automatically save to file the stack trace information?
I now that there is the dbghelp.dll
and StackWalk64
function but I would like rather to use some tool instead of coding myself.
Right now I am also looking at WinDebug
. I found here that hen there is a crash, giving the following commands it prints out tons of diagnostic information, including off course the stack trace.
|* ~* kp |* !analyze -v -f |* lm
I am figuring out whether WinDebug
can be automated but I would rather use some tool more simple to get just the stack trace. Can you help me?