Oxygene 9.0.95.1233 VS2015 Community Update 3
-
Create a new .NET console app
-
Replace the contents of Program.pas by this:
namespace ConsoleApplication14; interface uses System.Linq; type Program = class public class method Main(args: array of String): Int32; end; implementation class method Program.Main(args: array of String): Int32; begin var dropDetectionLoopCounter := 0; loop begin inc(dropDetectionLoopCounter); if dropDetectionLoopCounter > 10 then begin writeLn('test'); end; end; end; end.
-
place a breakpoint on line 24 ‘writeLn(‘Test’);’
-
edit the condition of the breakpoint to this: ‘dropDetectionLoopCounter > 3’
-
Run
→ the breakpoint will be hit and the condition worked fine, but if you continue VS will throw an error:
Microsoft Visual Studio
The condition for a breakpoint failed to execute. The condition was ‘dropDetectionLoopCounter > 3’. The error returned was ‘An unspecified error has occurred.’. Click OK to stop at this breakpoint.
OK