gcc debug log files on Windows?
I am starting to ship Qt applications built using MinGW and have a question about debug logs. When using code compiled with MSVC, if my app were to crash a l开发者_Go百科og file or mini-dump could be created that was invaluable when diagnosing the problem. There is even a very cool library called crashrpt that can generate and then email this log file back home automatically.
Will I be blessed with the same debugging logs when an application built using gcc crashes? If not, are there any tools out there that can produce useful logs that I can use to diagnose problems?
By default applications compiled with GCC do not produce a log when they crash - you will have to do that yourself somehow. On some platforms (not Windows), they may produce a core dump, which can be used for debugging, but this is nothing to do with GCC specifically.
(old question, answer for fellow googlers)
Gcc has a verbose termination handler which is more limited but could still be useful.
It attempts to display the cause of unwanted termination, most likely uncaught exceptions.
精彩评论