How to get the line number from the breakpoints?

SyntaxEditor for WPF Forum

Posted 6 years ago by nick wong
Version: 14.2.0610
Platform: .NET 4.5
Environment: Windows 8 (64-bit)


   I have a problem ,I 'am using your breakpoint sample in 'namespace ActiproSoftware.ProductSamples.SyntaxEditorSamples.QuickStart.IndicatorsDebugging', now I'd like to konw how to get the lines' number which were toggled as breakpoints. thanks.



[Modified 6 years ago]

Comments (2)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA


You can do code like this to get the lines:

foreach (var bp in document.IndicatorManager.Breakpoints.GetInstances()) {
	var line = bp.VersionRange.Translate(document.CurrentSnapshot).StartPosition.Line;

Actipro Software Support

Posted 6 years ago by nick wong

Thank you very much,it works. good product.

The latest build of this product (v2020.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.