sentry-contrib-rust icon indicating copy to clipboard operation
sentry-contrib-rust copied to clipboard

Add on demand minidump

Open vthib opened this issue 11 months ago • 0 comments

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.

vthib avatar Dec 09 '24 10:12 vthib