Debug

A helper class for debugging Lua code.
Return to Index
static log ( ... args ) -> ( )
static equals ( * obj1 , * obj2 ) -> ( )
static not_equals ( * obj1 , * obj2 ) -> ( )
static print_stack ( ) -> ( )
static empty ( table input ) -> ( boolean )
static empty ( string input ) -> ( boolean )
static log ( ... args ) -> ( )
Takes a variable number of arguments and prints them to the logger.
Parameters:
... args : A variable number of Lua objects to log.
static equals ( * obj1 , * obj2 ) -> ( )
Does an assert for checking that the values are equal. If they are not an exception is thrown in the internal game code. This does not return a value as if there is an exception the Lua code will stop executing.
Parameters:
* obj1 : The first object
* obj2 : The second object
static not_equals ( * obj1 , * obj2 ) -> ( )
Does an assert for checking that the values are not equal. If they are not an exception is thrown in the internal game code. This does not return a value as if there is an exception the Lua code will stop executing.
Parameters:
* obj1 : The first object
* obj2 : The second object
static print_stack ( ) -> ( )
Prints to console the current Lua stack.
static empty ( table input ) -> ( boolean )
Returns true if the given table is empty.
Parameters:
table input : The table to check.
Returns:
boolean : True if the table is empty.
static empty ( string input ) -> ( boolean )
Returns true if the given string is empty.
Parameters:
string input : The string to check.
Returns:
boolean : True if the string is empty.