Skip to main content

breakpad_client 0.0.3 copy "breakpad_client: ^0.0.3" to clipboard
breakpad_client: ^0.0.3 copied to clipboard

breakpad client for flutter desktop applications

breakpad_client #

A Flutter FFI plugin that installs a Breakpad exception handler and writes minidumps when the native process crashes.

Supported platforms: Linux and Windows.

Usage #

import 'package:breakpad_client/breakpad_client.dart' as breakpad;

void main() {
  breakpad.setLogger((log) => debugPrint(log));
  breakpad.initExceptionHandle('/path/to/crash/dumps');
  runApp(const MyApp());
}

initExceptionHandle creates the directory if needed and writes .dmp files there on crash. Calling it again replaces the previous handler.

The logger receives messages produced while the handler is being set up. Messages written while the process is crashing go to stderr only, because the Dart side can no longer receive them.

Build requirements #

  • Linux: CMake 3.10 or later and a C++17 compiler.
  • Windows: Visual Studio with CMake 3.14 or later.

Clone the repository with submodules, since Breakpad and linux-syscall-support are vendored as Git submodules:

git submodule update --init --recursive packages/breakpad_client
0
likes
150
points
181
downloads

Documentation

API reference

Publisher

verified publishermixin.dev

Weekly Downloads

breakpad client for flutter desktop applications

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ffi, flutter

More

Packages that depend on breakpad_client

Packages that implement breakpad_client