Table of Contents

Class Breakpoints

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

Displays list of breakpoints during script debugging.

[ToolboxBitmap(typeof(Breakpoints), "Images.Breakpoints.Icon.bmp")]
public class Breakpoints : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Inheritance
Breakpoints
Implements

Examples

Here is how to declare a Breakpoints and handle its events from the C# code:

public partial class Form1 : Form
{
    private void Form1_Load(object sender, EventArgs e)
    {
        var breakpointsControl = new Alternet.Scripter.Debugger.UI.Breakpoints();
        breakpointsControl.Dock = System.Windows.Forms.DockStyle.Fill;
        breakpointsControl.Debugger = debugger;
        breakpointsControl.BreakpointClick += BreakpointsControl_BreakpointClick;
    }

    private void BreakpointsControl_BreakpointClick(object sender, Alternet.Scripter.Debugger.UI.BreakpointClickEventArgs e)
    {
        if (e.Breakpoint != null)
        {
            System.Windows.Forms.MessageBox.Show(e.Breakpoint.FilePath);
        }
    }
}

Here is how to declare a Breakpoints and handle its events from the Visual Basic code:

Partial Public Class Form1
    Inherits Form

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim breakpointsControl = New Alternet.Scripter.Debugger.UI.Breakpoints()
        breakpointsControl.Dock = System.Windows.Forms.DockStyle.Fill
        breakpointsControl.Debugger = debugger
        AddHandler breakpointsControl.BreakpointClick, AddressOf BreakpointsControl_BreakpointClick
    End Sub

    Private Sub BreakpointsControl_BreakpointClick(ByVal sender As Object, ByVal e As Alternet.Scripter.Debugger.UI.BreakpointClickEventArgs)
        If e.Breakpoint IsNot Nothing Then
            System.Windows.Forms.MessageBox.Show(e.Breakpoint.FilePath)
        End If
    End Sub
End Class

Remarks

Breakpoints is a visual control used to display and navigate through the list of breakpoints set in the source during script debugging.

The most important properties of the Breakpoints are:

The Debugger property specifies ScriptDebugger instance, which breakpoints are displayed by this Breakpoints control.

The SelectedBreakpoint property represents the currently selected breakpoint.

Constructors

Breakpoints()

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

Fields

lvBreakpoints
updateCount

Properties

Debugger

Gets or sets IScriptDebuggerBase which breakpoints are displayed by this user control.

SelectedBreakpoint

Gets currently selected breakpoint.

Methods

Clear()

Clears breakpoint list.

Dispose(bool)

Clean up any resources being used.

Localize()
OnDebuggerChanged(IScriptDebuggerBase, IScriptDebuggerBase)
OnVisibleChanged(EventArgs)

Raises the VisibleChanged event.

Toggle(string, int)

Sets or removes breakpoint at a specified position.

UpdateList()

Updates list of breakpoints from the debugger's breakpoints collection.

Events

BreakpointClick

When implemented by a class, occurs when a user clicks on a breakpoint in the list.

BreakpointDeleted

When implemented by a class, occurs when a given breakpoint is deleted.

BreakpointStateChanged

When implemented by a class, occurs when given breakpoint state changes.