开发者

gcc debug log files on Windows?

开发者 https://www.devze.com 2022-12-13 22:07 出处:网络
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 c

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消