Search code examples
c#vb.netvisual-studiovisual-studio-2015conditional-breakpoint

Conditional breakpoint not working


Conditional Dialog

The above code has a conditional breakpoint set at its bottom line in yellow followed by the Breakpoint Settings dialog which should work with: item.Value == "aday"

However I get the below error, I have searched online for this and can't find any reason why this should fail. Im using VS 2015 Pro.

enter image description here

EDIT- Thank you for pointing out the obvious error on my part, I do normally code in C#. But now using a single '=' I get this??????? I assume that I it equates to an assignment, and adding parenthesis didn't help either?

enter image description here


Solution

  • If item.Value.Equals("aday") Then 'Temp If please remove
                        Debugger.Break()
                    end if
    

    Works in strict mode.