SugarCube Game Engine Debugger

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Autore
Nier automata
Installazioni giornaliere
1
Installazioni totali
2
Valutazione
0 0 0
Versione
1.0.5
Creato il
31/05/2026
Aggiornato il
31/05/2026
Dimensione
134 KB
Licenza
GPL-3.0-or-later
Applica a

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.