Creates and opens a bug report dialog which includes various state information.
| Author | Thomas M. Edwards |
| Website | http://www.motoslave.net/sugarcube/2/#downloads |
| Story format | SugarCube 2 |
| Last checked | Sun Nov 27 2022 |
| License | BSD 2-Clause "Simplified" License |
| Download | bugreport.zip |
SugarCube is a free (gratis and libre) story format for Twine/Twee.
This documentation is a reference for the <<bugreport>> macro set for SugarCube, it assumes at least a passing knowledge of SugarCube macros.
This package requires SugarCube v2.19.0 or greater.
bugreport-macro.min.js file in a text editor (not a word processor) and copy its contents.script-tagged passage.bugreport-macro.css or bugreport-macro-bleached.css file in a text editor (not a word processor) and copy its contents.stylesheet-tagged passage.The report generated by <<bugreport>> consists of four parts:
SOURCE: The filename of the story. Most useful if you include the story's version in it (e.g. mirror-mirror-v3.html).PASSAGES: The ordered list of passages traversed up to the passage where the report was generated.VARIABLES (PRE-EXECUTION): The story's variable store as it existed before the execution of the passage where the report was generated, shown as the difference between the previous passage's pre-execution state and the current passage's pre-execution state.VARIABLES (POST-EXECUTION): The story's variable store as it exists after the execution of the passage where the report was generated, shown as the difference between the current passage's pre- and post-execution states.The report proper is enclosed within spoiler and code tags, common to many forum software packages, and will look something like the following:
[spoiler][code]
SOURCE: mirror-mirror-v3.html
PASSAGES:
"Start", "Follow that rabbit"
VARIABLES (PRE-EXECUTION):
VARIABLES (POST-EXECUTION):
$seenRabbit=true
[/code][/spoiler]
Demo Twee code:
:: Start <<link "Show bug report.">><<bugreport>><</link>>