Property AllowedDebuggerCommands
AllowedDebuggerCommands
Gets or sets an allowed commands.
public AllowedDebuggerCommands AllowedDebuggerCommands { get; set; }
Property Value
Examples
Here is how to use a AllowedDebuggerCommands in the C# code:
using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI;
public partial class Form1 : Form
{
private void Form1_Load(object sender, EventArgs e)
{
var debugger = new ScriptDebugger();
var debuggerControlToolbar = new DebuggerControlToolbar();
debuggerControlToolbar.Debugger = debugger;
debuggerControlToolbar.AllowedDebuggerCommands = AllowedDebuggerCommands.Break
| AllowedDebuggerCommands.StartOrContinue | AllowedDebuggerCommands.StepInto | AllowedDebuggerCommands.StepOver
| AllowedDebuggerCommands.Stop;
}
}
Here is how to use a AllowedDebuggerCommands in the Visual Basic code:
Imports System
Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI
Partial Public Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim debugger = New ScriptDebugger()
Dim debuggerControlToolbar = New DebuggerControlToolbar()
debuggerControlToolbar.Debugger = debugger
debuggerControlToolbar.AllowedDebuggerCommands = AllowedDebuggerCommands.Break Or AllowedDebuggerCommands.StartOrContinue Or AllowedDebuggerCommands.StepInto Or AllowedDebuggerCommands.StepOver Or AllowedDebuggerCommands.[Stop]
End Sub
End Class
Remarks
You can specify which debugger commands are allowed to be called by this DebuggerControlToolbar control.