Table of Contents

Class WatchesPanel

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

Represents a panel for managing and evaluating watch expressions in a debugger environment.

public class WatchesPanel : BaseEvaluationPanel, INotifyPropertyChanged, ISupportInitialize, IComponent, IDisposable, INotifyDataErrorInfo, IDebuggerWatchesPanel, IDebuggerBaseEvaluationPanel, IDebuggerPanel
Inheritance
WatchesPanel
Implements

Remarks

The WatchesPanel class provides functionality to add, edit, delete, and evaluate watch expressions, which are used to monitor variable values or expressions during debugging. It integrates with a context menu and supports drag-and-drop operations for adding new watches.

Constructors

WatchesPanel()

Initializes a new instance of the WatchesPanel class.

Methods

AddWatch(string)

Adds specified expression to the list of watches.

AddWatch(string, bool, bool)

Adds specified expression to the list of watches.

CanAddWatch()

Determines whether a watch can be added in the current debugging session.

CanClear()

Determines whether the watches list can be cleared.

CanDeleteWatch()

Determines whether the currently selected watch can be deleted.

CanEditWatch()

Determines whether the currently selected watch can be edited.

Clear()

Clears watches list.

DeleteSelectedWatch()

Deletes the currently selected watch from the collection of watches.

EvaluateWatchExpressions()

Evaluates values of all expressions asynchronously.

HasSelectedWatch()

Determines whether a watch is currently selected while the debugger is in a stopped state.

Localize()

Localizes string resources.

OnContextMenuOpening(object?, CancelEventArgs)

Handles the event triggered before the context menu is displayed, allowing customization of menu items.

RunAddWatchCommand()

Displays the watch dialog to add a new watch expression.

RunEditWatchCommand()

Opens a dialog to edit the currently selected watch.

SelectCurrent()

Selects the first node in the results tree view that matches the current expression.

ShowWatchDialog(string?, bool)

Displays a dialog for managing a watch expression, allowing the user to add or modify a watch.