2011-04-18 72 views
7

有沒有人有谷歌breakpad配置的任何例子?我可以很好地構建它,但是,有限的文檔。我想查看一些示例,例如如何修改發送崩潰報告的位置。谷歌Breakpad的例子

+0

這與App Engine有什麼關係? – 2011-04-18 05:58:10

+0

任何人的建議? – chadb 2011-04-18 18:35:49

+0

你有沒有想過這個? – 2011-06-03 17:51:13

回答

2

這似乎是平臺特定的。在Windows上,您可以在客戶端\ 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); 

這有幫助嗎?