Table of Contents

Property DefaultCommands

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

DefaultCommands

Gets IDebuggerUICommands processed by this toolbar.

[Browsable(false)]
public IDebuggerUICommands DefaultCommands { get; }

Property Value

IDebuggerUICommands

Examples

Here is how to use a DefaultCommands in the C# code:

using System;

using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI;

public partial class Form1 : Form
{
    private DebuggerControlToolbar debuggerControlToolbar;
    private void Form1_Load(object sender, EventArgs e)
    {
        var debugger = new ScriptDebugger();

        debuggerControlToolbar = new DebuggerControlToolbar();
        debuggerControlToolbar.Debugger = debugger;
    }

    private void StartButton_Click(object sender, EventArgs e)
    {
        debuggerControlToolbar.DefaultCommands.Start();
    }
}

Here is how to use a DefaultCommands in the Visual Basic code:

Imports System

Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI

Partial Public Class Form1
    Inherits Form
    Private debuggerControlToolbar As DebuggerControlToolbar
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim debugger = New ScriptDebugger()

        debuggerControlToolbar = New DebuggerControlToolbar()
        debuggerControlToolbar.Debugger = debugger
    End Sub

    Private Sub StartButton_Click(ByVal sender As Object, ByVal e As EventArgs)
        debuggerControlToolbar.DefaultCommands.Start()
    End Sub
End Class

Remarks

Usually any of the debugger commands, like StartDebugging, can be called by clicking on the appropriate button from the DebuggerControlToolbar control. You can also directly call them from the DefaultCommands list.