Property Debugger
Debugger
Gets or sets IScriptDebuggerBase
which stack frames displayed by this user control.
[Browsable(false)]
public IScriptDebuggerBase Debugger { get; set; }
Property Value
Examples
Here is how to use a Debugger in the C# code:
public partial class Form1 : Form
{
private void Form1_Load(object sender, EventArgs e)
{
var callStackControl = new Alternet.Scripter.Debugger.UI.CallStack();
callStackControl.Dock = System.Windows.Forms.DockStyle.Fill;
callStackControl.Debugger = debugger;
callStackControl.CallStackClick += CallStackControl_CallStackClick;
}
private void CallStackControl_CallStackClick(object sender, Alternet.Scripter.Debugger.UI.CallStackClickEventArgs e)
{
if (e.StackFrame != null)
{
System.Windows.Forms.MessageBox.Show(e.StackFrame.Name);
}
}
}
Here is how to use a Debugger in the Visual Basic code:
Partial Public Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim callStackControl = New Alternet.Scripter.Debugger.UI.CallStack()
callStackControl.Dock = System.Windows.Forms.DockStyle.Fill
callStackControl.Debugger = debugger
AddHandler callStackControl.CallStackClick, AddressOf CallStackControl_CallStackClick
End Sub
Private Sub CallStackControl_CallStackClick(ByVal sender As Object, ByVal e As Alternet.Scripter.Debugger.UI.CallStackClickEventArgs)
If e.StackFrame IsNot Nothing Then
System.Windows.Forms.MessageBox.Show(e.StackFrame.Name)
End If
End Sub
End Class