-
Notifications
You must be signed in to change notification settings - Fork 5
Debug
Berke edited this page Jun 23, 2026
·
1 revision
The Debug table provides logging and editor output utilities for Lua scripts. These functions are mainly used for debugging gameplay logic and printing runtime information.
Debug.Print(...)Prints a formatted message to the engine/editor console.
| Name | Type | Description |
|---|---|---|
| ... | any | Variadic arguments (converted to string) |
nilDebug.Print("Player position:", entity.transform.position)All logging functions accept variadic arguments and internally convert them into a single string.
Debug.LogInfo(...)Logs an informational message.
Debug.LogInfo("Game started", true)Debug.LogWarning(...)Logs a warning message.
Debug.LogWarning("Low health:", hp)Debug.LogError(...)Logs an error message.
Debug.LogError("Failed to load level:", levelName)Debug.LogCritical(...)Logs a critical error message.
Debug.LogCritical("Renderer crashed!")- All arguments are converted using a safe string serializer.
- Unsupported types are represented as:
<object>
- Output goes through
spdlogand engine editor console which is inside Logs/ (if you are on Windows that is C:\Users\x\Documents\Tilky Engine\Logs\engine_logt.txt) - These functions are intended for debugging only, not gameplay logic.