Table of Contents

Interface IBreakpointTable

Namespace
RDCore.SDK.Runtime.Abstract.Execution
Assembly
RDCore.SDK.dll

The lines of the source a program that is run under a debugger waits at before it runs them.

public interface IBreakpointTable

Remarks

A breakpoint is a place in the source, not in the code: the code of a module is loaded again whenever the document is edited, and a breakpoint stays on its line. The place is a line of a module, and the instructions it is are found in the code that runs. On a line a statement begins on, it is the first instruction of a procedure's body that begins there. On a line that only ends a block (an End If, an End Select, an End With, a Next or a Loop), it is each instruction shown there, so that the program waits there from whichever branch it took. Any other line is not a place a program waits at, and is not looked for after: the client that sets breakpoints says which lines they are on, and is told which of them are places a program waits at.

The program waits before the instruction, as it does at a step, and is resumed from the same instruction without waiting there again.

⚖️RDCore provides an implementation of this interface licensed under GPLv3.

Properties

HasAny

Whether any line has a breakpoint, which is all that the interpreter looks at between two instructions when none has.

bool HasAny { get; }

Property Value

bool

Methods

Clear()

Removes every breakpoint.

void Clear()

Set(string, IReadOnlyCollection<RuntimeBreakpoint>)

Replaces the breakpoints of a module.

void Set(string module, IReadOnlyCollection<RuntimeBreakpoint> breakpoints)

Parameters

module string

The address of the module, as its symbol has it.

breakpoints IReadOnlyCollection<RuntimeBreakpoint>

The breakpoints, one per line. None removes the module's breakpoints.