2using System.Collections.Generic;
35 string view = stepInfo.
GetSourceView(Array.Empty<
int>(), out
int _, out
int lineInSource);
59 if (cmd.StartsWith(
"ignore-file"))
61 string file = cmd.Remove(0,
"ignore-file".Length).Trim();
67 if (cmd.StartsWith(
"file"))
Wrapper class for the console abstraction.
static string ReadLine()
Reads a line from the console.
static void WriteLine(string str)
Writes a string to the console and appends a newline.
Implements a Simple Console Debugger.
int m_LastLine
The last source line that was printed.
string? m_LastSource
The Last source code that was printed.
void Step(BadDebuggerStep stepInfo)
Gets called on every step when the Debugger is attached.
static readonly List< string > s_IgnoredFiles
The List of Ignored Files.
Defines the Debugging Interface.
Contains a Console Abstraction Layer to be able to Simulate Console Input/Output over the Network.
Contains the debugger implementations for the BadScript2 Runtime.
Contains the debugging abstractions for the BadScript2 Runtime.
Represents a Debugging Step.
string GetSourceView(int[] breakpoints, out int topInSource, out int lineInSource, int lineDelta=4)
Returns a line listing of the Step.
readonly BadSourcePosition Position
The Source Position of the Step.