C程序崩溃后,如何从Windows获取有意义的错误消息?

时间:2019-05-17 00:11:08

标签: c windows runtime-error

运行我用C语言编写的程序时,其中包含导致崩溃的错误,我将从Windows收到以下消息:

A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.

这根本没有帮助我找到问题。它可能是导致数组出现段错误或NULL指针取消引用或其他任何原因的数组越界错误。

最后,我通过注释掉代码直到找到胭脂代码找到了错误。

我想有一种更快的方法来查找这些错误。 “ Vanilla” Mingw GCC和Windows是否可以实现?还是我必须安装精美的IDE才能在崩溃后获取有意义的错误消息?

0 个答案:

没有答案
相关问题