2using System.Collections.Generic;
19 private readonly Dictionary<string, int>
m_LineNumbers =
new Dictionary<string, int>();
29 private readonly List<string>
m_SeenFiles =
new List<string>();
61 stepInfo.
GetLines(4, 4, out _, out
int lineInSource);
92 public event Action<BadDebuggerStep>?
OnStep;
Exposes the BadScript Runtime Functionality to Consumers.
BadRuntime Clone()
Clone this Runtime.
BadRuntime UseApi(BadInteropApi api, bool replace=false)
Adds or Replaces a specified API.
BadRuntimeExecutionResult ExecuteFile(string file, IFileSystem? fileSystem=null)
Executes the specified script file.
Implements the Debugger API for the Scriptable Debugger.
Implements a Scriptable Debugger.
readonly List< string > m_SeenFiles
The Files that are already seen by the Debugger.
readonly Dictionary< string, int > m_LineNumbers
The Line Numbers/Positions for the Debugger.
void Step(BadDebuggerStep stepInfo)
Gets called on every step when the Debugger is attached.
Action< string >? OnFileLoaded
Event that gets called when a new file is loaded.
readonly BadRuntime m_Runtime
The Debugger Execution Context Options.
void LoadDebugger(string path)
Loads the Debugger from the given File Path.
BadScriptDebugger(BadRuntime runtime)
Constructs a new BadScriptDebugger instance.
BadScriptDebugger(BadRuntime runtime, string debuggerPath)
Constructs a new BadScriptDebugger instance.
Action< BadDebuggerStep >? OnStep
Event that gets called on every debugger step.
The Debugger Settings that are used by the Scriptable Debugger.
static T Instance
Returns the Instance of the Settings Provider.
Defines the Debugging Interface.
Contains the scriptable debugger implementation for the BadScript2 Runtime.
Contains the debugging abstractions for the BadScript2 Runtime.
Represents a Debugging Step.
readonly BadSourcePosition Position
The Source Position of the Step.
string[] GetLines(int top, int bottom, out int topInSource, out int lineInSource)
Returns a line excerpt of the Step.