gnusto 
| resources: | Home Installation Mailing list Source code Bugs Screenshots Nightlies |
|---|---|
| reference: | Roadmap Error messages Code overview Debugger (prototype only) Playthroughs |
Tossio-- Gnusto's debugger
Gnusto has a built-in debugger, named Tossio after the spell to turn granite into fettucine.
Tossio is in its early stages at present. One day, it will have a GUI; until then, you can execute a tossio command by giving an instruction starting with a slash, in place of a command to the story. (No longer: changes to the parser have meant that Tossio can't be called from standard builds. It should return around the New Year of 2004.) Tossio is not yet recommended for general use, though it's interesting to play with and occasionally useful in solving problems. It only works at the z-code level at present; eventually it will also work with Inform source files.
These Tossio commands are defined at present:
- /help
- lists all the tossio commands.
- /open xxx
- open mangled story file xxx.
- /status
- print the value of the program counter and so on
- /on
- turn on debug mode. (This is too vague!)
- /dis
- dissembles current story file. This can take a few seconds. Tossio won't dissemble again if it already has the information. Some commands will invoke this automatically.
- /showjs
- make /status show current JIT JavaScript.
- /parser
- make tossio show some additional parser debugging
- /step
- step one place through (unlikely to be one opcode because of JIT; this should be cleaner)
- /run
- runs on until something interesting happens
- /context
- shows dissembly around program counter
- /set
- sets a breakpoint
- /clear
- clears a breakpoint
- /show type id
- shows the value of a variable
- /put
- sets the value of a variable
- /about
- displays the about box