gpt4 book ai didi

c++ - Google Breakpad 示例

转载 作者:可可西里 更新时间:2023-11-01 17:58:58 26 4
gpt4 key购买 nike

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

最佳答案

这似乎是特定于平台的。在 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> &parameters,
const wstring &dump_file_name,
wstring *report_code);

这有帮助吗?

关于c++ - Google Breakpad 示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5698960/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com