Build/Test Issues

Error on conditional breakpoint

Started by MarkFlagg on 3,200 views

If I debug the test using NCrunch I get this dialog:

Dialog Title: Microsoft Visual Studio
Dialog Text: "The condition for a breakpoint failed to execute. The condition was 'projectionYear.Year==2062'. The error returned was 'The debugger is unable to evaluate this expression'."

If I debug via Resharper's test runner the breakpoint is hit as expected with no errors.

Any ideas?

Thanks Mark.
Hi, thanks for sharing this problem.

NCrunch's instrumentation rebuilds the PDBs, and sometimes this can do odd things with the debugger.

Can you confirm if you're able to access the 'projectionYear.Year' value using the immediate window in your debugger when you're stopped in the context of this line of code?
Thanks for the help.

Yes I can access 'projectionYear.Year' in the immediate window.

I deleted NCrunch temp files in C:\Users\Mark\AppData\Local\NCrunch and deleted all obj and bin folders from solution. Also restarted the PC.

Any ideas to try?

If not I can live with it as I can still debug, just not via NCrunch.

Post a reply

Log in to reply.