:
I would prefer to have been able to do the data breakpoint, but I have been
trying and failing to get the condition /has changed to work. This may
be
my
stupidity *but* the documentation for this is very sparse and does not give
me a working example. I can get the "is true" condition to work fine but not
the has changed. If you can give my a sample code and what I should put in
the condition for the has changed condition I will be grateful.
Otherwise
my
foot is going through this Screen.
Lets try
Create a new Console application.
Copy paste the following in Class1.cs
---8<---
using System;
namespace ConsoleApplication1
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
int i = 0, j = 0;
while (true)
{
Console.WriteLine("{0} {1}", i, j);
if (j > 50)
{
i++;
}
j++;
}
}
}
}
---8<---
Put a breakpoint on the Console.WriteLine(...) statement
Go in the properties for this breakpoint and set the condition to "i"
and select "has changed".
Compile and run. The application will only break when i has changed
ie at the 50th Console.WriteLine(...)
Does that suit your needs ?