Skip to content

CF_CrashMode

Category: crash
GitHub: cute_crash.h


How a crash is caught.

Values

Enum Description
CF_CRASH_MODE_INPROCESS Catch the crash inside the crashing process. The report is uploaded on the next launch, or by a child process spawned from the handler when upload_on_crash is set.
CF_CRASH_MODE_WATCHER A watcher process spawned by cf_crash_init reports from outside. Exits with the game; never respawns.

Remarks

In-process (the default) catches the crash in the crashing process, writes the report and dies. Watcher spawns a second copy of the executable at startup that watches the game from outside: on Windows it walks the crashed stack and writes the minidump from a healthy process and catches hangs and silent exits the moment they happen; on macOS and Linux it only uploads at once.

CF_CrashConfig
cf_crash_init