sonolus.script.debug¶
debug_log(value)
¶
Log a value in debug mode.
debug_pause()
¶
Pause the game if in debug mode.
error(message=None)
¶
Raise an error.
This function is used to raise an error during runtime. When this happens, the game will pause in debug mode. The current callback will also immediately return 0.
static_error(message=None)
¶
Raise a static error.
This function is used to raise an error during compile-time if the compiler cannot guarantee that this function will not be called during runtime.