Property SelectedBreakpoint
SelectedBreakpoint
Gets currently selected breakpoint.
public Breakpoint SelectedBreakpoint { get; }
Property Value
Examples
Here is how to use a SelectedBreakpoint in the C# code:
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 breakpointsControl = new Breakpoints();
breakpointsControl.Debugger = debugger;
}
private void Button_Click(object sender, RoutedEventArgs e)
{
var bp = breakpointsControl.SelectedBreakpoint;
MessageBox.Show(string.Format("file: {0} line: {1}", bp.FilePath, bp.LineNumber));
}
}
Here is how to use a SelectedBreakpoint in the Visual Basic code:
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 breakpointsControl = New Breakpoints()
breakpointsControl.Debugger = debugger
End Sub
Private Sub Button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim bp = breakpointsControl.SelectedBreakpoint
MessageBox.Show(String.Format("file: {0} line: {1}", bp.FilePath, bp.LineNumber))
End Sub
End Class
Remarks
The SelectedBreakpoint property can be changed by clicking on the appropriate breakpoint in the Breakpoint list displayed by this control.