In This Article

IDebuggerState Interface

Provides the base requirements for an object that contains information about the current IDebugger state.

public interface IDebuggerState

Properties

Breakpoints

Gets the collection of IBreakpoint objects.

IList<IBreakpoint> Breakpoints { get; }

Property Value

IList<IBreakpoint>:

The collection of IBreakpoint objects.

Ebnf

Gets the textual EBNF representation of the grammar.

string Ebnf { get; }

Property Value

string:

The textual EBNF representation of the grammar.

IsBreakForCanMatch

Gets whether the current pause is related to a can-match check for an EbnfTerm.

bool IsBreakForCanMatch { get; }

Property Value

bool:

true if the current pause is related to a can-match check; otherwise, false.

Matches

Gets the list of IDebuggableAstNodeMatch objects that indicate the labeled AST node matches for the current scope.

IList<IDebuggableAstNodeMatch> Matches { get; }

Property Value

IList<IDebuggableAstNodeMatch>:

The list of IDebuggableAstNodeMatch objects that indicate the labeled AST node matches for the current scope.

NonTerminalStack

Gets the stack of IDebuggableNonTerminal objects into which the parser has entered.

Stack<IDebuggableNonTerminal> NonTerminalStack { get; }

Property Value

Stack<IDebuggableNonTerminal>:

The stack of IDebuggableNonTerminal objects into which the parser has entered.

NonTerminals

Gets the read-only list of IDebuggableNonTerminal objects defined in the grammar.

IList<IDebuggableNonTerminal> NonTerminals { get; }

Property Value

IList<IDebuggableNonTerminal>:

The read-only list of IDebuggableNonTerminal objects defined in the grammar.

ParseErrors

Gets the collection of IParseError objects that will be returned in the IParseData parsing result.

IEnumerable<IParseError> ParseErrors { get; }

Property Value

IEnumerable<IParseError>:

The collection of IParseError objects that will be returned in the IParseData parsing result.

RootNode

Gets the root IDebuggableAstNode that has been constructed.

IDebuggableAstNode RootNode { get; }

Property Value

IDebuggableAstNode:

The root IDebuggableAstNode that has been constructed.

TermStack

Gets the stack of IDebuggableEbnfTerm objects into which the parser has entered.

Stack<IDebuggableEbnfTerm> TermStack { get; }

Property Value

Stack<IDebuggableEbnfTerm>:

The stack of IDebuggableEbnfTerm objects into which the parser has entered.

Terminals

Gets the read-only list of IDebuggableTerminal objects defined in the grammar.

IList<IDebuggableTerminal> Terminals { get; }

Property Value

IList<IDebuggableTerminal>:

The read-only list of IDebuggableTerminal objects defined in the grammar.

TokenReader

Gets the ITokenReader that is used to read tokens during the parsing operation.

ITokenReader TokenReader { get; }

Property Value

ITokenReader:

The ITokenReader that is used to read tokens during the parsing operation.

Methods

AddBreakpoint(IDebuggableSymbol)

void AddBreakpoint(IDebuggableSymbol symbol)
Parameter Type Description
symbol IDebuggableSymbol

The IDebuggableSymbol for which a breakpoint should be created.

RemoveBreakpoint(IDebuggableSymbol)

Removes an IBreakpoint for an IDebuggableSymbol.

void RemoveBreakpoint(IDebuggableSymbol symbol)
Parameter Type Description
symbol IDebuggableSymbol

The IDebuggableSymbol for which a breakpoint should be removed.