Table of Contents

Class DebuggerControlToolbar

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

Represents a toolbar for controlling debugging operations, providing buttons for common debugger actions such as starting, stopping, and stepping through code.

public class DebuggerControlToolbar : ToolBar, INotifyPropertyChanged, ISupportInitialize, IComponent, IDisposable, INotifyDataErrorInfo
Inheritance
DebuggerControlToolbar
Implements

Remarks

The DebuggerControlToolbar class is designed to integrate with a DebuggerController to manage debugging workflows. It provides a set of predefined buttons for actions like starting debugging, stopping debugging, stepping into or over code, and evaluating expressions. The toolbar automatically updates the visibility and enabled state of its buttons based on the current debugger state.

Constructors

DebuggerControlToolbar()

Initializes a new instance of the DebuggerControlToolbar class with default settings.

Fields

ResPrefix

Gets or sets resource url prefix for the debugger toolbar images.

Properties

AllowedDebuggerCommands

Gets an allowed commands.

ButtonIdBreakAll

Gets 'Break All' button identifier.

ButtonIdCompile

Gets 'Compile' button identifier.

ButtonIdEvaluate

Gets 'Evaluate' button identifier.

ButtonIdRunToCursor

Gets 'RunToCursor' button identifier.

ButtonIdStartDebug

Gets 'Start Debug' button identifier.

ButtonIdStartNoDebug

Gets 'Start Without Debug' button identifier.

ButtonIdStepInto

Gets 'Step Into' button identifier.

ButtonIdStepOut

Gets 'Step Out' button identifier.

ButtonIdStepOver

Gets 'Step Over' button identifier.

ButtonIdStopDebugging

Gets 'Stop Debugging' button identifier.

Controller

Gets or sets DebuggerController used to control the debug process.

IsDebugEnabled

Gets or sets a value indicating whether debug mode is enabled.

UseColorImages

Gets or sets a value indicating whether color images should be used in the toolbar buttons.

Methods

AddButton(string, string, Keys, Action?, LightDarkColor?)

Adds a button to the toolbar with the specified text, image resource, keyboard shortcut, and action.

AddButtonBreakAll()
AddButtonCompile()
AddButtonEvaluate()
AddButtonRunToCursor()
AddButtonStartDebug()
AddButtonStartNoDebug()
AddButtonStepInto()
AddButtonStepOut()
AddButtonStepOver()
AddButtonStopDebugging()
Localize()

Localizes string resources.

OnUpdateDebugButtonsEnabled(object?, EventArgs)
OnUpdateDebugButtonsVisible(object?, EventArgs)
UpdateDebugButtonsEnabled()
UpdateDebugButtonsVisible()