Skip to content
Download all docs .md

Catch Errors in Unreal C++ and Blueprints

Needs the GameFuse Unreal plugin (game-fuse-cpp) 3.1 or newer.

Blueprints: after Set Up Game, add the Catch Errors node (category GameFuse | Errors).

C++:

#include "GameFuseManager.h"

UGameFuseManager::CatchErrors();

That is all. From now on these show up on your game's Errors tab:

  • errors: UE_LOG(..., Error, ...) lines (the log category is shown as the error's type);
  • crashes: fatal errors and crashes, written to disk as they happen with the error text and call stack, and sent on the next start. Desktop builds also notice if the game did not close cleanly last time.

Options

UGameFuseManager::CatchErrors(TEXT("1.0.3"), /*bCaptureLoggedErrors=*/ false);
  • Release: your game's version. Default: Project Settings > Description > Project Version.
  • bCaptureLoggedErrors: false sends only crashes and the errors you send yourself.

Send one yourself

Blueprints: the Send Error node, with a message and an optional map of details.

C++:

UGameFuseManager::SendError(TEXT("Boss had no target"), { { TEXT("level"), TEXT("3") } });
UGameFuseManager::SendError(TEXT("Shop returned no items"), {});

This works without Catch Errors, but needs Set Up Game.

How it is sent

  • Each error is first saved in Saved/GameFuse/PendingErrors.json, then sent from the game thread about 2 seconds later.
  • What could not be sent (offline, or the game crashed first) is sent on the next start, marked as from the last session.
  • At most 50 errors wait, at most 30 are sent a minute, and the same error at most 5 times a minute.
  • It fills in the map, the operating system, the CPU and the signed-in GameFuse player.
  • In the editor it stops listening when Play ends, so the editor's own errors are not sent.