简体   繁体   English

Google Breakpad示例

[英]Google Breakpad examples

Does anyone have any examples of configurations for google breakpad? 有没有人有关于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. 我希望看到一些示例,例如如何修改崩溃报告发送到的位置。

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). 在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);

Does this help? 这有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM