XLQP Gen1
ElementsAdvanced integrations

AddDebugConsole

Adds a live, syntax-aware debug console with copy, clear, capture, and typed logging controls.

AddDebugConsole

What it does

Adds an embedded console that can display normal, info, warning, error, success, and highlighted code entries. It can also capture Roblox LogService output.

ElementFunction:AddDebugConsole(ConsoleConfig)

local Console = Logs:AddDebugConsole({
    Name = "Debug Console",
})

Console:Info("Interface ready")
Console:Warn("High ping detected")

Controller methods

MethodResult
Log(message, level?)Appends a line; level defaults to Log.
Info, Warn, Error, Success, CodeAppends a typed line.
Clear()Removes all entries.
GetText()Returns the visible console as plain text.
Copy()Copies all text when the runtime provides a clipboard function.
SetHeight(value)Resizes the output.
SetCapture(enabled)Enables or disables active Roblox output capture.

Compatibility aliases: CreateDebugConsole, AddConsole, and CreateConsole.