Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
ScriptStoppedReason
Passed in the Datatype.ScriptDebugStopped payload to the ScriptDebuggerService.OnStopped callback, indicating what triggered the pause.
Items
| Name | Value | Description |
|---|---|---|
| Breakpoint | 0 | Execution stopped because a user-defined breakpoint was hit. |
| Exception | 1 | Execution stopped because an exception was thrown (governed by the current DebugBreakModeType). |
| Pause | 2 | Execution stopped because ScriptDebuggerService:Pause() was called. |
| Step | 3 | Execution stopped after completing a step operation. |
| Entry | 4 | Execution stopped at a script's entry point. |
Breakpoint
Execution stopped because a user-defined breakpoint was hit.
| Field | Value |
|---|---|
| value | 0 |
Exception
Execution stopped because an exception was thrown (governed by the current DebugBreakModeType).
| Field | Value |
|---|---|
| value | 1 |
Pause
Execution stopped because ScriptDebuggerService:Pause() was called.
| Field | Value |
|---|---|
| value | 2 |
Step
Execution stopped after completing a step operation.
| Field | Value |
|---|---|
| value | 3 |
Entry
Execution stopped at a script's entry point.
| Field | Value |
|---|---|
| value | 4 |