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
IsDebugging
Describes if this ScriptDebugger is actually debugging the script attached to it.
Methods
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.
Parameters
Returns
GetLocals
Returns a dictionary of all local variables in the specified stack frame, where the keys are the names of the variables, and the values are the actual values of the variables.
Parameters
Returns
GetUpvalues
Returns a dictionary of all upvalues present in the specified stack frame, where the keys are the names of the upvalues, and the values are the actual values of the upvalues.
Parameters
Returns
GetWatchValue
Returns the current value of a variable being watched by a DebuggerWatch.
Parameters
Returns
SetBreakpoint
Sets the specified line of the script as a breakpoint. Returns a DebuggerBreakpoint that you can use to manage the breakpoint.
Parameters
Whether the breakpoint is unique for a single script instance or not.
Returns
SetGlobal
Sets the value of the variable name as value in the global environment of the specified stack frame.
Parameters
Returns
SetLocal
Sets the value of the variable name as value in the specified stack frame.
Parameters
Returns
Events
Resuming
Fires when the game is resumed after being paused by a breakpoint.