Property Debugger
Debugger
Gets or sets IScriptDebuggerBase
which commands will be displayed by this control.
[Browsable(false)]
public IScriptDebuggerBase Debugger { get; set; }
Property Value
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 debugMenu = new DebugMenu();
debugMenu.Debugger = debugger;
debugMenu.DebuggerPreStartup += OnDebuggerPreStartup;
}
private void OnDebuggerPreStartup(object sender, EventArgs e)
{
System.Windows.Forms.MessageBox.Show("Debugger is about to start");
}
}
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 debugMenu = New DebugMenu()
debugMenu.Debugger = debugger
AddHandler debugMenu.DebuggerPreStartup, AddressOf OnDebuggerPreStartup
End Sub
Private Sub OnDebuggerPreStartup(ByVal sender As Object, ByVal e As EventArgs)
Windows.Forms.MessageBox.Show("Debugger is about to start")
End Sub
End Class