1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

DebuggerExceptionBreakMode

Controls when the Luau debugger pauses script execution in response to a runtime exception. This enum is used as the breakMode argument to DebuggerConnection:SetExceptionBreakMode().

Items

NameValueDescription
Never0The debugger never pauses due to a runtime exception; execution continues normally regardless of whether the exception is caught or uncaught.
Always1The debugger pauses on every runtime exception, including those caught by pcall or xpcall.
Unhandled2The debugger pauses only on runtime exceptions that propagate without being caught by pcall or xpcall.

Never

The debugger never pauses due to a runtime exception; execution continues normally regardless of whether the exception is caught or uncaught.

FieldValue
value0

Always

The debugger pauses on every runtime exception, including those caught by pcall or xpcall.

FieldValue
value1

Unhandled

The debugger pauses only on runtime exceptions that propagate without being caught by pcall or xpcall.

FieldValue
value2