ScriptDebugger
A ScriptDebugger is used to handle the debugging of a specific script. It can be retrieved from the DebuggerManager.
Summary
Properties
The current line that the script is on.
Describes if this ScriptDebugger is actually debugging the script attached to it.
Methods
Returns a dictionary of all variables that are present in the global environment of the stack frame.
Returns a dictionary of all local variables in the specified stack frame.
Returns a dictionary of all upvalues present in the specified stack frame.
Returns the current value of a variable being watched by a DebuggerWatch.
Sets the specified line of the script as a breakpoint. Returns a DebuggerBreakpoint that you can use to manage the breakpoint.
Sets the value of the variable name as value in the global environment of the specified stack frame.
Sets the value of the variable name as value in the specified stack frame.
Sets the value of the upvalue name as value in the specified stack frame.
Events
Fires when a DebuggerBreakpoint is added to the script.
Fires when a DebuggerBreakpoint is removed from the script.
Fires when a DebuggerBreakpoint is encountered by the script.
Fires when a DebuggerWatch is added to this script debugger.
Fires when a DebuggerWatch is removed from this script debugger.
Properties
CurrentLine
The current line that the script is on.
IsDebugging
Describes if this ScriptDebugger is actually debugging the script attached to it.
IsPaused
Describes if this ScriptDebugger is paused.
Script
The script object this debugger is linked to.
Methods
AddWatch
Returns
GetGlobals
Returns a dictionary of all variables that are present in the global
environment of the stack frame, where the keys are the names of the
variables, and the values are the actual values of the variables.
Each stack frame might see different global variables if function
environments are different.
Returns
GetWatchValue
Returns
GetWatches
Returns
SetBreakpoint
Sets the specified line of the script as a breakpoint. Returns a DebuggerBreakpoint that you can use to manage the breakpoint.
Returns
Events
BreakpointAdded
BreakpointRemoved
EncounteredBreak
Fires when a DebuggerBreakpoint is encountered by the script.
Resuming
Fires when the game is resumed after being paused by a breakpoint.