![]() |
BadScript 2
|
Represents a Debugging Step. More...
Public Member Functions | |
BadDebuggerStep (BadExecutionContext context, BadSourcePosition position, object? stepSource) | |
Creates a new Debugger Step. | |
string | GetInfo () |
Returns a string representation of the Step. | |
string | GetSourceView (int[] breakpoints, out int topInSource, out int lineInSource, int lineDelta=4) |
Returns a line listing of the Step. | |
string | GetSourceView (int top, int bottom, int[] breakpoints, out int topInSource, out int lineInSource) |
Returns a line listing of the Step. | |
override string | ToString () |
Returns string representation of the Step. | |
string[] | GetLines (int top, int bottom, out int topInSource, out int lineInSource) |
Returns a line excerpt of the Step. | |
bool | Equals (BadDebuggerStep other) |
Returns true if the Step is equal to another object. | |
override bool | Equals (object? obj) |
Returns true if the Step is equal to another object. | |
override int | GetHashCode () |
Returns the Hash Code of the Step. | |
Static Public Member Functions | |
static bool | operator== (BadDebuggerStep left, BadDebuggerStep right) |
Implements the == operator. | |
static bool | operator!= (BadDebuggerStep left, BadDebuggerStep right) |
Implements the != operator. | |
Public Attributes | |
readonly? object | StepSource |
The Source of the Step. | |
readonly BadExecutionContext | Context |
The Execution Context of where the Step was executed. | |
readonly BadSourcePosition | Position |
The Source Position of the Step. | |
Represents a Debugging Step.
Definition at line 12 of file BadDebuggerStep.cs.
BadScript2.Debugging.BadDebuggerStep.BadDebuggerStep | ( | BadExecutionContext | context, |
BadSourcePosition | position, | ||
object? | stepSource | ||
) |
Creates a new Debugger Step.
context | The Execution Context of where the Step was executed |
position | The Source Position of the Step |
stepSource | The Source of the Step |
Definition at line 35 of file BadDebuggerStep.cs.
bool BadScript2.Debugging.BadDebuggerStep.Equals | ( | BadDebuggerStep | other | ) |
Returns true if the Step is equal to another object.
other | The other object |
Definition at line 156 of file BadDebuggerStep.cs.
override bool BadScript2.Debugging.BadDebuggerStep.Equals | ( | object? | obj | ) |
Returns true if the Step is equal to another object.
obj | The other object |
Definition at line 166 of file BadDebuggerStep.cs.
override int BadScript2.Debugging.BadDebuggerStep.GetHashCode | ( | ) |
Returns the Hash Code of the Step.
Definition at line 175 of file BadDebuggerStep.cs.
string BadScript2.Debugging.BadDebuggerStep.GetInfo | ( | ) |
Returns a string representation of the Step.
Definition at line 46 of file BadDebuggerStep.cs.
string[] BadScript2.Debugging.BadDebuggerStep.GetLines | ( | int | top, |
int | bottom, | ||
out int | topInSource, | ||
out int | lineInSource | ||
) |
Returns a line excerpt of the Step.
topInSource | Indicates the start line of the excerpt |
lineInSource | Indicates Current line of the code |
top | The Amount of lines before the Source Position |
bottom | The Amount of lines after the Source Position |
Definition at line 122 of file BadDebuggerStep.cs.
string BadScript2.Debugging.BadDebuggerStep.GetSourceView | ( | int | top, |
int | bottom, | ||
int[] | breakpoints, | ||
out int | topInSource, | ||
out int | lineInSource | ||
) |
Returns a line listing of the Step.
breakpoints | The Line numbers of the breakpoints |
topInSource | Indicates the start line of the excerpt |
lineInSource | Indicates Current line of the code |
top | The Amount of lines before the Source Position |
bottom | The Amount of lines after the Source Position |
Definition at line 76 of file BadDebuggerStep.cs.
string BadScript2.Debugging.BadDebuggerStep.GetSourceView | ( | int[] | breakpoints, |
out int | topInSource, | ||
out int | lineInSource, | ||
int | lineDelta = 4 |
||
) |
Returns a line listing of the Step.
breakpoints | The Line numbers of the breakpoints |
topInSource | Indicates the start line of the excerpt |
lineInSource | Indicates Current line of the code |
lineDelta | The Amount of lines before and after the Source Position |
Definition at line 61 of file BadDebuggerStep.cs.
|
static |
Implements the != operator.
left | The left side |
right | The right side |
Definition at line 197 of file BadDebuggerStep.cs.
|
static |
Implements the == operator.
left | The left side |
right | The right side |
Definition at line 186 of file BadDebuggerStep.cs.
override string BadScript2.Debugging.BadDebuggerStep.ToString | ( | ) |
Returns string representation of the Step.
Definition at line 109 of file BadDebuggerStep.cs.
readonly BadExecutionContext BadScript2.Debugging.BadDebuggerStep.Context |
The Execution Context of where the Step was executed.
Definition at line 22 of file BadDebuggerStep.cs.
readonly BadSourcePosition BadScript2.Debugging.BadDebuggerStep.Position |
The Source Position of the Step.
Definition at line 27 of file BadDebuggerStep.cs.
readonly? object BadScript2.Debugging.BadDebuggerStep.StepSource |
The Source of the Step.
Definition at line 17 of file BadDebuggerStep.cs.