Skip to Content
The Alchemy Project

Debug Mode

Retail cartridges of Golden Sun: The Broken Seal still contain Camelot's built-in developer toolkit behind a single global flag, along with ten test rooms across three scene overlays.

How DebugMode is gated

Inside syInit() in games/tbs/src/system/system_start_up.c, boot code clears one global byte before the main routine starts:

DebugMode = 0;

No normal gameplay path ever sets DebugMode to a non-zero value; only an unreachable sprite viewer writes to it. When DebugMode is non-zero in memory, the retail cartridge activates Camelot's developer hooks across the field engine, the battle engine, and the sound driver:

Code reference