跨平台崩溃处理程序

发布于 2024-08-03 10:15:46 字数 251 浏览 10 评论 0 原文

我正在寻找跨平台崩溃处理程序。 Google Breakpad 看起来很有前途,但它严重缺乏任何文档,并且需要合理的数量摆弄才能真正开始。

什么是更好的选择?

我所需要的只是能够可靠地记录崩溃时的崩溃转储、堆栈跟踪和 CPU 信息。或者,使用 Google Breakpad 的体验如何?它是伟大的还是可怕的?

I'm looking for a cross-platform crash handler. Google Breakpad looks promising, but it is sorely lacking any documentation, and requires a reasonable amount of fiddling to actually get going.

What is a better alternative?

All I need is the ability to reliably record crash dumps, stack traces, and CPU information at the time of a crash. Alternatively, what is the experience using Google Breakpad? Has it been great or horrible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

御弟哥哥 2024-08-10 10:15:46

好吧,事实证明 google-breakpad 还是相当不错的。设置起来并不容易,但对于我的需要来说已经足够了。

Well, it turns out that google-breakpad is pretty nice after all. It's not totally easy to set up, but it's OK for what I need.

辞取 2024-08-10 10:15:46

几年前,我在 DDJ 上写了一篇关于在 Windows 和 Unix/Linux 中转储 C/C++ 堆栈的文章。它不使用核心转储,但会在发生内部错误或操作系统确定应用程序故障时将堆栈帧写入日志文件。

也许它对您有帮助:

请参阅http://www.ddj.com/architect/185300443

I wrote a article about dumping the stack in C/C++ with Windows and Unix/Linux at DDJ some years ago. It does not use a coredump, but it writes stack frames into a log file, on internal errors, or when the OS determines a Application fault.

Maybe it helps you:

See http://www.ddj.com/architect/185300443

没有心的人 2024-08-10 10:15:46

对于已编译的代码,有两个不错的选择 - UNIX 变体下的 核心转储博士。 Watson Windows 下的崩溃日志/转储。我知道这不是一个跨平台解决方案,但是如果您只处理两个平台,那么拥有两个解决方案并不是什么坏事。

当然,这些解决方案仅捕获崩溃时的核心图像,而不是机器的状态。我不知道有什么可以在应用程序崩溃时捕获 IO 和 CPU 负载。您可能需要查看 Mozilla Crash Reporter,它是,奇怪的是,也称为“Breakpad”...巧合吗?

For compiled code, there are two good options - core dumps under UNIX variants and Dr. Watson crash logs/dumps under Windows. I know that this isn't a cross-platform solution, but when if you are only dealing with two platforms, then having two solutions isn't really that bad of a thing.

Of course, the solutions only capture a core image at the time of crash and not the state of the machine. I don't know of anything that will capture IO and CPU load at the time of an application crash. You might want to look into the Mozilla Crash Reporter which is, oddly enough, also known as "Breakpad"... coincidence?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文