Table of Contents

Property Debugger

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

Debugger

Gets or sets IScriptDebuggerBase which output messages will be displayed by this user control.

[Browsable(false)]
public IScriptDebuggerBase Debugger { get; set; }

Property Value

IScriptDebuggerBase

Examples

Here is how to use a Debugger 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 outputControl = new Output();
        outputControl.Dock = System.Windows.Forms.DockStyle.Fill;
        outputControl.Debugger = debugger;
    }
}

Here is how to use a Debugger 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 outputControl = New Output()
        outputControl.Dock = Windows.Forms.DockStyle.Fill
        outputControl.Debugger = debugger
    End Sub
End Class

Remarks

Output UI control is used to display the debugger's messages. You can associate the Debugger with the Output control by setting Debugger property.