Skip to content

zhangjiangen11/sentry-godot

 
 

Repository files navigation

Sentry for Godot Engine

This SDK is actively evolving and may still be incomplete. It is developed as a C++ GDExtension library, building on top of existing Sentry SDKs, such as sentry-native. We are also considering adding support for compilation as a custom module. Let us know what you think!

Getting started

Check the official Sentry SDK documentation to get started. Feel free to explore the demo project/ for usage examples.

Building Sentry Godot SDK

Godot Sentry SDK can be built for Windows, Linux, and macOS platforms (x86_64 for PC, and universal arch for Mac). Pre-built extension libraries with the demo project are available in Releases.

Setting up SCons

Prerequisites: SCons, CMake, C/C++ compiler, python, clang-format.

On Windows, if you have scoop installed, you can easily install most of the required packages with the following command:

scoop install python scons cmake clang

You can also use an existing Python installation to install SCons build tool:

# install scons
python -m pip install scons

# upgrade scons
python -m pip install --upgrade scons

Or, on a Mac:

brew install scons

Compiling

  1. Clone this repository

  2. Restore submodules: git submodule update --init --recursive

  3. Build GDExtension libraries:

    # build *editor* library for the current platform
    # run from the repository root dir
    scons target=editor debug_symbols=yes

    The build process should produce a GDExtension library file for the editor target at project/addons/sentrysdk/bin/....

    To export a project in Godot that uses this extension, you'll also need the libraries for the export templates:

    # build *export* library for the current platform
    scons target=template_release debug_symbols=yes
  4. Open demo project in Godot Engine:

    # open demo project in Godot 4.3
    godot project/project.godot

In the Godot editor, you can adjust the Sentry SDK settings by going to Project Settings -> Sentry -> Config.

Contributing

We appreciate your contributions! Feel free to open issues for feature requests and ask questions in Discussions. Your feedback is very much welcome!

Check out our Contributing Guide.

About

崩溃收集程序WIP Godot SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 71.0%
  • GDScript 17.8%
  • Python 6.1%
  • PowerShell 4.5%
  • Shell 0.6%