SugarCube Game Engine Debugger

Advanced SugarCube debug panel with UI, configuration, and real-time variable inspection

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Skaber
Nier automata
Daglige installationer
1
Installationer i alt
2
Bedømmelser
0 0 0
Version
1.0.5
Oprettet
31.05.2026
Opdateret
31.05.2026
Size
134 kB
Licens
GPL-3.0-or-later
Gælder for

SugarCube Game Engine Debugger

Advanced SugarCube debug panel with UI, configuration, and real-time variable inspection.

What This Script Does

  • Adds an in-game debugger overlay for SugarCube HTML games.
  • Lets you inspect passage metadata, branch conditions, macro usage, and links.
  • Includes a variable editor with deep path support (arrays/objects) and pinned variables.
  • Adds optional history navigation controls (with force override mode).
  • Includes links explorer filters and macro details on demand.

Basic Usage

  • Toggle debugger: Ctrl + D
  • Close debugger: Esc
  • Move draggable toggle button anywhere on screen.

Important Setup For Local HTML Files

Because this script uses:

  • @match file:///*.html
  • @match file:///*.htm

You must enable your userscript extension permission to run on local files.

Tampermonkey / Violentmonkey / Similar

  1. Open your browser extension page.
  2. Find your userscript extension.
  3. Enable Allow access to file URLs (wording may vary by browser).
  4. Reload your local game HTML.

If you skip this, the script will not run on local SugarCube games.

Running On Online SugarCube Games

If you want this script to run on web-hosted SugarCube games, edit the userscript header @match lines.

Example:

// @match        https://example.com/*
// @match        https://your-sugarcube-site.net/*

Then save the script and reload that site.

Note: keep matches specific when possible for safety.

Notes

  • Debug logging can be disabled from Settings (Debug Logging (Console)).
  • Some history behavior depends on game configuration; debugger includes force-history options.
  • Use responsibly when testing games and story branches.