This repository contains modifications provided by Backtrace I/O.
Provided by Ihor Dutchak.
There also exists a Backtrace-specific function:
bool StartHandlerForBacktrace(const base::FilePath& handler,
const base::FilePath& database,
const base::FilePath& metrics_dir,
const std::string& url,
const std::map<std::string, std::string>& annotations,
const std::vector<std::string>& arguments,
const std::map<std::string, std::string>& fileAttachments,
bool restartable,
bool asynchronous_start);
It's very similar to StartHandler
, with the exception of the
fileAttachments
parameter, which is a map of upload file names to
local file paths.
For example, the following code will upload the log file from the specified
path as 2018-02-30.log
:
std::map<std::string, std::string> files = {
{ "2018-02-30.log", "C:/my_app/2018-02-30.log" }
};
rc = client.StartHandlerForBacktrace(handler,
db,
db,
url,
annotations,
arguments,
files,
true,
true);
If one does not want to use a Backtrace-specific function, the same result of
uploading a file attachment to Backtrace I/O can be achieved by adding elements
to the arguments
vector in the following format:
--attachment=attachment_$ATTACHMENT_NAME=$ATTACHMENT_FILE_PATH
For the above example of 2018-02-30.log
, the code would look as follows:
arguments.push_back(
"--attachment=attachment_2018-02-30.log=C:/my_app/2018-02-30.log"
);
A new function has been added to CrashpadClient
, useful, example, when
dealing with vectored exceptions. Additionally, it does not require that
the process must end (the exception may be handled).
static void DumpWithoutCrashWithException(EXCEPTION_POINTERS* pointer);
Crashpad is a crash-reporting system.
- Project status
- Developing Crashpad: instructions for getting the source code, building, testing, and contributing to the project.
- Crashpad interface documentation
- Crashpad tool man pages
- Crashpad overview design
Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.
- Bugs can be reported at the Crashpad issue tracker.
- The Crashpad bots perform automated builds and tests.
- crashpad-dev is the Crashpad developers’ mailing list.