Table of Contents

Interface IScriptDebuggerBase

Namespace
Alternet.Scripter.Debugger
Assembly
Alternet.Scripter.Debugger.Common.v9.dll

Provides methods and properties that allow developers to debug applications in the common language runtime (CLR) environment.

public interface IScriptDebuggerBase

Properties

Breakpoints

When implemented by a class, returns collection of debugger breakpoints.

Capabilities

When implemented by a class, gets debugger capabilities.

EventsSyncAction

When implemented by a class, gets or sets an action used to synchronize events raising. This is normally a function provided by the application to sync raised debugger events (for example, perform Control.Invoke)

ExpressionEvaluator

When implemented by a class, gets IExpressionEvaluator object used to evaluate expressions.

IsStarted

When implemented by a class, indicates whether debugging was started.

Options

When implemented by a class, gets start debugging options.

ScopeResolutionService

When implemented by a class, gets IScopeResolutionService object used to evaluate method names and parameters.

ScriptRun

When implemented by a class, contains all information required to compile and run the script

State

When implemented by a class, gets current debugger state.

Methods

ActivateThread(int)

When implemented by a class, switches debugging to the specified thread.

Break()

When implemented by a class, causes the given process to pause its execution so that its current state can be analyzed.

ClearTemporaryGeneratedModules()

When implemented by a class, clears temporary generated modules on disk.

Continue()

When implemented by a class, continues given process to the next breakpoint or until process finishes.

EvaluateCurrentExceptionAsync(CancellationToken)

When implemented by a class, evaluates current expression based on the current stack frame.

EvaluateExpressionAsync(ExpressionEvaluationRequest, CancellationToken)

When implemented by a class, evaluates an expression based on the current stack frame. If the expression can be parsed but not evaluated, an object is returned but will not contain a valid value.

EvaluateExpressionsAsync(IEnumerable<ExpressionEvaluationRequest>, CancellationToken)

When implemented by a class, evaluates an expression based on the current stack frame. If the expression can be parsed but not evaluated, an object is returned but will not contain a valid value.

GetExecutionPositionAsync(CancellationToken)

When implemented by a class, finds out current ExecutionPosition based on the current stack frame.

GetStackFramesAsync(CancellationToken)

When implemented by a class, gets list of method calls that are currently on a stack

GetThreadsAsync(CancellationToken)

When implemented by a class, gets list of active threads.

GetVariablesInScopeAsync(CancellationToken)

When implemented by a class, receives all local variables based on the current stack frame.

RunScript(string[])

When implemented by a class, executes the script without debugging.

RunScriptAsync(string[])

When implemented by a class, starts executing the script without debugging.

SetRunToPositionBreakpoint(RunToPositionBreakpoint)

When implemented by a class, causes debugger to stop at the specified position.

StartDebugging()

When implemented by a class, starts executing the program from the entry point with default settings.

StartDebugging(StartDebuggingOptions)

When implemented by a class, starts executing the program from the entry point with specified settings.

StepInto()

When implemented by a class, executes one statement of code; steps into the next function call, if possible.

StepOut()

When implemented by a class, executes one statement of code; steps out of the function currently being executed.

StepOver()

When implemented by a class, executes one statement of code; steps over the next function call.

StopDebuggingAsync(CancellationToken)

When implemented by a class, stops executing the program.

SwitchToStackFrame(StackFrame)

When implemented by a class, switches debugging to the given stack frame.

TrySetNextStatementAsync(int, CancellationToken)

When implemented by a class, tries to set the execution point to the specified line of code.

Events

ActiveThreadChanged

When implemented by a class, occurs when thread to be debugged changes.

BeforeContinue

When implemented by a class, occurs before debugger continues to program execution.

BeforeStep

When implemented by a class, occurs before debugger performs a step.

BeforeStop

When implemented by a class, occurs before debugger stop debugging.

DebuggerErrorOccured

When implemented by a class, occurs when encounters error during debugging session.

DebuggingStarted

When implemented by a class, occurs when debugging session is started.

DebuggingStopped

When implemented by a class, occurs when debugging session is stopped.

ExecutionResumed

When implemented by a class, occurs when debugging is resumed after being paused.

ExecutionStopped

When implemented by a class, occurs when debugging is paused.

LogMessageReceived

When implemented by a class, occurs when debug message is received.

SourceFileLocationResolve

When implemented by a class, occurs when source file location resolution is requested.

StackFrameSwitched

When implemented by a class, occurs debugger switches to the stack frame

StateChanged

When implemented by a class, occurs when debugger state is changed.