在C ++上记录应用程序错误 [英] Logging application error on C++

查看:66
本文介绍了在C ++上记录应用程序错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个c ++应用程序(.exe)。显示错误的

Hi,

I have an c++ application (.exe). Which showing error of

application encountered serious error and must shutdown 





有没有办法记录错误。喜欢处理或记录应用程序级错误。谢谢。



我尝试了什么:





Is there any way to log the error. Like handling or logging application level error. Thank you.

What I have tried:

application encountered serious error and must shutdown 





如何处理或记录应用程序级错误。



How to handling or logging application level error.

推荐答案

难以猜测。它什么时候发生?可能取决于某些特殊情况,例如缺少访问权限,文件或网络等资源。也许某处是一个日志文件。



如果您有代码=>使用调试器获取更多详细信息

else =>卸载应用程序并重新安装应用程序。
Hard to guess. When does it happen? May depend on some special situations like missing resources like access rights, files or network. Maybe somewhere is a log file.

If you have the code => use the debugger get more details
else => deinstall the app and reinstall the app.


这篇关于在C ++上记录应用程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆