Skip to content

API > Debug


Debug⚓︎

The debugging tool for Lua scripts.

Members⚓︎

Static Methods⚓︎

Name Description
Debug.Log(message) Static fieldMethod Simply logs a string passed in message.
Debug.LogError(message) Static fieldMethod Logs the string passed by message as Error.
Debug.LogWarning(message) Static fieldMethod 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!");