sentry-contrib-rust
sentry-contrib-rust copied to clipboard
Add on demand minidump
Checklist
- [X] I have read the Contributor Guide
- [X] I have read and agree to the Code of Conduct
- [X] I have added a description of my changes and why I'd like them included in the section below
It can be useful to generate a minidump of a program not only on crashes, but also on demand, when we can detect an invalid situation and want to generate a dump to be able to investigate it in details. Breakpad has this ability, so this MR simply exposes this through the Rust API.
Description of Changes
A new BreakpadHandler::generate_minidump helper is added to generate a minidump on demand. The code is reworked and reworded to function with non fatal dumps.