Table of Contents

Class DebuggerController

Namespace
Alternet.Scripter.Debugger.UI.AlternetUI
Assembly
Alternet.Scripter.Debugger.UI.AlternetUI.v10.dll

Provides functionality to control and interact with a script debugger, including managing debugger states, handling commands, and responding to debugger-related events.

public class DebuggerController : DisposableObject, INotifyPropertyChanged, IDisposable
Inheritance
DebuggerController
Implements

Remarks

The DebuggerController class serves as the central controller for managing debugging operations. It provides properties and methods to start, stop, and control debugging sessions, as well as events to notify subscribers about changes in debugger state, command execution, and other debugging-related activities.

Constructors

DebuggerController()

Initializes a new instance of the DebuggerController class.

Properties

AllowedDebuggerCommands

Gets or sets an allowed commands.

BreakOnStartSupported
CanBreak
CanCompile
CanEvaluate
CanRunToCursor
CanStartDebug
CanStartWithoutDebug
CanStepInto
CanStepOut
CanStepOver
CanStop

Gets a value indicating whether the debugger can be stopped.

CommandsListener

Gets or sets a list of the Debugger commands for the Debugger UI.

Debugger

Gets or sets attached IScriptDebuggerBase.

DefaultCommands

Gets IDebuggerUICommands processed by this object.

RunningWithoutDebug

Gets a value indicating whether the script is running without an attached debugger.

SafeState
StartDebugMenuText

Methods

AssignedAndHasState(params DebuggerState[])
Compile()
CompileIfRequired(bool)
DebugBreak()
DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

EvalExpression()
HandleCompileClick(object, EventArgs)
HandleDebugBreakClick(object, EventArgs)
HandleEvalExpressionClick(object, EventArgs)
HandleRunToCursorClick(object, EventArgs)
HandleStartDebugClick(object, EventArgs)
HandleStartWithoutDebugClick(object, EventArgs)
HandleStepIntoClick(object, EventArgs)
HandleStepOutClick(object, EventArgs)
HandleStepOverClick(object, EventArgs)
HandleStopDebugClick(object, EventArgs)
InvokePreStartup()
OnDebuggerErrorOccurred(object?, DebuggerErrorOccurredEventArgs)
OnDebuggerStateChanged(object, DebuggerStateChangedEventArgs)
RunToCursor()
StartDebug()
StartWithoutDebug()
StepInto()
StepOut()
StepOver()
StopDebug()
StopDebugAsync()

Events

AfterCommand
AllowedDebuggerCommandsChanged
BeforeCommand
DebuggerPreStartup

Occurs when the execution of a program is started.

DebuggerStateChanged
RunningProcessLog
UpdateDebugButtonsEnabled
UpdateDebugButtonsVisible
WatchAdded