Table of Contents

Property AllowedDebuggerCommands

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

AllowedDebuggerCommands

Gets or sets an allowed commands.

public AllowedDebuggerCommands AllowedDebuggerCommands { get; set; }

Property Value

AllowedDebuggerCommands

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 debugMenu = new DebugMenu();
        debugMenu.Debugger = debugger;
        debugMenu.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.Wpf

Partial Public Class MainWindow
    Inherits Window
    Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim debugger = New ScriptDebugger()

        Dim debugMenu = New DebugMenu()
        debugMenu.Debugger = debugger
        debugMenu.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 DebugMenu control.