How to get the line number from the breakpoints?

SyntaxEditor for WPF Forum

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

Hi,

   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.

 

nick

[Modified 5 years ago]

Comments (2)

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

Hello,

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 5 years ago by nick wong
Avatar

Thank you very much,it works. good product.

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.