bugfixes-godot

GDScript error reporting and logs for Godot 4.5+, with no external dependencies. Captures script and engine errors while the engine is running, including errors from worker threads.

Install

Copy addons/bugfixes/ from the bugfixes-godot SDK into your project. In Project Settings → Globals → Autoload, add addons/bugfixes/bugfixes.gd as Bugfixes. Place it before your application's startup autoload.

Create a public key

Create an agent in your project. For native desktop and mobile exports, choose Mobile key from its public-key menu and allow a stable reverse-DNS app ID, such as com.example.mygame. Use the resulting bfm_ public key and matching app_id below. Never ship an agent secret in your game.

For web exports, choose Browser key, allow the game's hosting origin, and use its bfb_ key instead. Keep app_id set as a stable identifier. Native and browser keys cannot be interchanged.

Start reporting

func _ready() -> void:
    Bugfixes.start({
        "key": "bfm_your_public_key",
        "app_id": "com.example.mygame",
        "release": "mygame@1.0.0",
        "environment": "production",
    })

An empty key disables reporting. Invalid configuration returns false. Call the public API on the main thread. Enable INTERNET in Android export presets and outbound networking where required by export entitlements.

Errors and logs

Bugfixes.report("Save file could not be loaded")
Bugfixes.log("error", "Payment declined")
push_error("Invalid inventory state") # captured automatically

The default log threshold is error. Set level to info to include routine logs. Normal print output is excluded. Up to 50 reports persist on disk, with automatic retries for transient delivery failures. Bugfixes.flush() starts an immediate asynchronous delivery attempt.

Release builds and limits

Enable debug/settings/gdscript/always_track_call_stacks for engine-provided release backtraces. Leave local variable capture disabled. Native process crashes, hangs, startup parse failures, and errors before start() cannot be recovered. Exiting immediately after reporting does not wait for delivery.