PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

ScriptDebugger

Show deprecated

ScriptDebugger

Show deprecated

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


Properties

int

CurrentLine

[ReadOnly] [NotReplicated]

The current line that the script is on.

bool

IsDebugging

[ReadOnly] [NotReplicated]

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

bool

IsPaused

[ReadOnly] [NotReplicated]

Describes if this ScriptDebugger is paused.

Instance

Script

[ReadOnly] [NotReplicated]

The script object this debugger is linked to.

Functions

Instance

AddWatch ( string expression )

Adds a watch with the given expression.

Objects

GetBreakpoints ( )

Returns a list of DebuggerBreakpoint present in the script.

Map

GetGlobals ( )

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

GetLocals ( int stackFrame )

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

GetStack ( )

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

Map

GetUpvalues ( int stackFrame )

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

Variant

GetWatchValue ( Instance watch )

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

Objects

GetWatches ( )

Returns a list with all the watches for this debugger

Instance

SetBreakpoint ( int line )

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

void

SetGlobal ( string name , Variant value )

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

void

SetLocal ( string name , Variant value , int stackFrame )

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

void

SetUpvalue ( string name , Variant value , int stackFrame )

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

Events

RBXScriptSignal

BreakpointAdded ( Instance breakpoint )

Fired when a breakpoint is added to the script.

RBXScriptSignal

BreakpointRemoved ( Instance breakpoint )

Fired when a breakpoint is removed from the script.

RBXScriptSignal

EncounteredBreak ( int line , BreakReason breakReason )

Fired when a breakpoint is encountered by the script.

RBXScriptSignal

Resuming ( )

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

RBXScriptSignal

WatchAdded ( Instance watch )

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

RBXScriptSignal

WatchRemoved ( Instance watch )

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