Debug.print(message, trace_levels) | Shows the given message if debug is enabled. |
Debug.get_meta_value(object, key) | Returns the value of the key inside the object or 'InvalidLuaObject' if the LuaObject is invalid. |
Debug.object_type(object) | Returns the Lua data type or the factorio LuaObject type or 'NoHelpLuaObject' if the LuaObject does not have a help function or 'InvalidLuaObject' if the LuaObject is invalid. |
Debug.print_position(position, message) | Shows the given message if debug is on. |
Debug.cheat(callback) | Executes the given callback if cheating is enabled. |
Debug.is_closure(func) | Returns true if the function is a closure, false otherwise. |
Shows the given message if debug is enabled.
Uses serpent to print non scalars.
Parameters: