The console offers an ability to switch debug options of Sanny Builder. Mostly they relate to the disassembler features and you can see the changes when disassemble a file. The console window is open after pressing
Ctrl+~. You may enter the commands in the input line. After typing a command press
Enterto proceed. The console will display a result.
All commands are case-insensitive.
help– shows the help information about the console
clear– clears the console
list– shows in the console the list of all commands
list options– lists all available debug options
toggle [on/off]– enable or disable debug options
The input command ends either with the word
ON(the option will be enabled) or
OFF(the option will be disabled), or nothing (the option will be toggled from
The disassembler prints the offset of each command.
The disassembler ignores unknown opcodes, incorrect parameters and so on. It helps to open almost any file that used to be protected or compiled incorrectly.
The disassembler prints array elements as global variables with indexes. It's available for
E.g. given an array of three elements starting at
$10this option affects the way the variables look like after disassembling:
Disassembler skips the header of the input file. It allows to open headless scripts (e.g. the ones from
script.imgor CLEO scripts).
Sanny Builder offers a few other ways to toggling debug options outside of the console that might be useful in some cases.
--debugoption provides an alternate way of switching the debug options. Run Sanny with the parameter
--debug X, where
Xis a series of
1. Each digit in the series corresponds to a particular debug option:
sanny.exe --debug 110000
CODE_OFFSETSoption, the second
IGNORE_UNKNOWNmode. The remaining options are disabled.
Clicking the right-most button in the main toolbar shows a drop-down menu with the list of debug options.
Each menu item toggles a particular debug option. The change comes into effect immediately.