Debugging enhancements
dfsek opened this issue ยท 0 comments
Add a debugBlock
TerraScript function, and split up the master config.yml
's debug
option.
Debug options split
debug.commands
- Enables/disables debug commands.debug.log
- Enables/disables debug-level logging, including the TerraScriptprint
function.- Add registry dumping to debug logging; after pack reloads, dump the values of all registries if
debug.log
is enabled, along with information about each entry (such as alive/dead status, accesses, etc.)
- Add registry dumping to debug logging; after pack reloads, dump the values of all registries if
debug.profiler
- If enabled, automatically start the profiler on load.debug.script
- Enables/disables the TerraScriptdebugBlock
function.
debugBlock
TerraScript function
Generates a block at a location only if debug.script
is enabled. If the option is not enabled, debugBlock
function entries are not to be included at all in the compiled script.