Примеры Google Breakpad - PullRequest
       37

Примеры Google Breakpad

7 голосов
/ 18 апреля 2011

У кого-нибудь есть примеры конфигураций для Google Breakpad? Я могу сделать это очень хорошо, однако, есть ограниченная документация. Я хотел бы видеть примеры, например, как изменить, куда отправляются отчеты о сбоях.

1 Ответ

2 голосов
/ 25 апреля 2011

По-видимому, это зависит от платформы. В 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);

Помогает ли это?

...