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 System;
using System.Diagnostics;
using System.Windows;
using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI.Wpf;
public partial class MainWindow : Window
{
private void Window_Loaded(object sender, RoutedEventArgs 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 System.Diagnostics
Imports System.Windows
Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI.Wpf
Partial Public Class MainWindow
Inherits Window
Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
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.