A debug tool for SugarCube v2, to be used primarily with Twee Compilers.
Displays a list of all story variables, and allows editing their current values.
First Clone or Download this repository. The .zip file contains both the minified-drop-to-use and pretty-you-wanna-know-what-it-does versions of the code. Pick your choice and go to town with it.
From inside the dist-scd directory, copy contents of scDebuggerScript.min.js into your Story Javascript section, scDebuggerStyle.min.css into your Story Stylesheet section.
Then finally, copy contents of scDebuggerMarkup.tw into a passage named sc-debugger and add nobr as a tag. Delete this line from the top:
:: sc-debugger [nobr]Drop the dist-scd directory containing scDebuggerScript.min.js, scDebuggerStyle.min.css and scDebuggerMarkup.tw into your source directory.
Press = on your keyboard to open the debugger!
- Grouping / Multiple Tabs
- Locked values
- A Chrome extension
scDebugger uses Lodash.js. If you (somehow) already use it in your project, download only the components from the src directory (exclude Lodash from your project source).
-
v0.1.2
- Fixed issue regarding dot notation being used for invalid object property identifiers.
- Changed
<div>ID naming to a number based system instead of slugified variable names to avoid ambiguity while setting variable values.
-
v0.1.1
- Styling changes. The UI now looks more consistent across projects.
- Tweaks of how the variable names are displayed. Now they're more akin to how you'd define and access Story variables in SugarCube v2.
-
v0.1.0
- Initial release.


