Google Breakpad 示例

发布于 2024-11-01 19:47:29 字数 67 浏览 9 评论 0原文

有人有谷歌breakpad的配置示例吗?我可以很好地构建它,但是文档有限。我想查看示例,例如如何修改崩溃报告的发送位置。

Does anyone have any examples of configurations for google breakpad? I can build it just fine, however, there is limited documentation. I would like to see examples, such as how to modify where crash reports get sent to.

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

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

发布评论

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

评论(1

过期情话 2024-11-08 19:47:29

这似乎是特定于平台的。在 Windows 上,您可以在 client\windows\sender\crash_report_sender.h 中查看以下函数(特别要注意“url”参数)。

// Sends the specified minidump file, along with the map of
// name value pairs, as a multipart POST request to the given URL.
// Parameter names must contain only printable ASCII characters,
// and may not contain a quote (") character.
// Only HTTP(S) URLs are currently supported.  The return value indicates
// the result of the operation (see above for possible results).
// If report_code is non-NULL and the report is sent successfully (that is,
// the return value is RESULT_SUCCEEDED), a code uniquely identifying the
// report will be returned in report_code.
// (Otherwise, report_code will be unchanged.)
ReportResult SendCrashReport(const wstring &url,
                             const map<wstring, wstring> ¶meters,
                             const wstring &dump_file_name,
                             wstring *report_code);

这有帮助吗?

This appears to be platform-specific. On Windows, you could check out the following function in client\windows\sender\crash_report_sender.h (in particular, note the 'url' argument).

// Sends the specified minidump file, along with the map of
// name value pairs, as a multipart POST request to the given URL.
// Parameter names must contain only printable ASCII characters,
// and may not contain a quote (") character.
// Only HTTP(S) URLs are currently supported.  The return value indicates
// the result of the operation (see above for possible results).
// If report_code is non-NULL and the report is sent successfully (that is,
// the return value is RESULT_SUCCEEDED), a code uniquely identifying the
// report will be returned in report_code.
// (Otherwise, report_code will be unchanged.)
ReportResult SendCrashReport(const wstring &url,
                             const map<wstring, wstring> ¶meters,
                             const wstring &dump_file_name,
                             wstring *report_code);

Does this help?

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