We use cookies on this site to enhance your user experience

ScriptDebugger

ScriptDebugger

A ScriptDebugger is used to handle the debugging of a specific script. It can be retrieved from the DebuggerManager.


Properties

Name Type Description
int

The current line that the script is on.

bool

Describes if this ScriptDebugger is actually debugging the script attached to it.

bool

Describes if this ScriptDebugger is paused.

Instance

The script object this debugger is linked to.

Inherited from Instance

Archivable ClassName DataCost Name Parent RobloxLocked

Functions

Name Type Description
Instance

Adds a watch with the given expression.

Objects

Returns a list of DebuggerBreakpoint present in the script.

Map

Returns a dictionary of all variables that are visible to the script’s global stack, where the keys are the names of the variables, and the values are the actual values of the variables.

Map

Returns a dictionary of all local variables in the specified stack, where the keys are the names of the variables, and the values are the actual values of the variables.

Array

Returns an array of all active call stacks in the script.

Map

Returns a dictionary of all upvalues present in the stack specified.

Variant

Returns the current value of a variable being watched by a DebuggerWatch.

Objects

Returns a list with all the watches for this debugger

Instance

Sets the specified line of the script as a breakpoint. Returns a DebuggerBreakpoint that you can use to manage the breakpoint.

void

Sets the value of the variable name as value in the script’s main stack.

void

Sets the value of the variable name as value in the stack specified.

void

Sets the value of the upvalue name as value in the stack specified.

Inherited from Instance

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild

Events

Name Type Description

Fired when a breakpoint is added to the script.

Fired when a breakpoint is removed from the script.

Fired when a breakpoint is encountered by the script.

Fired when the game is resumed after being paused by a breakpoint.

Fired when an expression watch is added to this script debugger.

Fired when an expression watch is removed from this script debugger.

Inherited from Instance

AncestryChanged Changed ChildAdded ChildRemoved DescendantAdded DescendantRemoving