Property DefaultCommands
DefaultCommands
Gets IDebuggerUICommands
processed by this menu.
[Browsable(false)]
public IDebuggerUICommands DefaultCommands { get; }
Property Value
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 DebugMenu debugMenu;
private void Form1_Load(object sender, EventArgs e)
{
var debugger = new ScriptDebugger();
debugMenu = new DebugMenu();
debugMenu.Debugger = debugger;
}
private void StartButton_Click(object sender, EventArgs e)
{
debugMenu.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 debugMenu As DebugMenu
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim debugger = New ScriptDebugger()
debugMenu = New DebugMenu()
debugMenu.Debugger = debugger
End Sub
Private Sub StartButton_Click(ByVal sender As Object, ByVal e As EventArgs)
debugMenu.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 DebugMenu control. You can also directly call them from the DefaultCommands list.