I am debugging a Service Fabric application and need to use a conditional breakpoint based on the value of the id of an object. So I placed a conditional breakpoint to the effect of
c.id == "43rregfjlh32";
However, when the breakpoint is hit by the debugger, I get the following message:
The condition for a breakpoint failed to execute. The condition was
c.id == "43rregfjlh32"
. The error returned was `Evaluation of method System.String.op_Equality() calls into native method System.Environment.FailFast(). Evaluation of native methods in this context is not supported. Click OK to stop at this breakpoint.
I've looked online and tried enabling things like Managed Compatibility Mode as was suggested in some posts. However, this does not work.