Skip to main content

Debug

The debugging tool for Lua scripts.

Members

Static Methods

NameDescription
Debug.Log(message)Simply logs a string passed in message.
Debug.LogError(message)Logs the string passed by message as Error.
Debug.LogWarning(message)Logs the string passed by message as warning.

Example

  • The Debug outputs a STDOUT. This is not visible to players in the Massive Loop client.
  • When running the world in local test, The Debug output will be routed and showed in the Unity Editor with Massive Loop SDK package using the InterLog.
  • When running the world in a normal Massive Loop client, the logs will be recorded on a normal game log file.
-- log a normal message
Debug.Log("This is a message");

-- log a warning
Debug.LogWarning("Warning!");