Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Error on conditional breakpoint
MarkFlagg
#1 Posted : Thursday, October 18, 2018 10:44:03 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/18/2018(UTC)
Posts: 2
Location: South Africa

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.
Remco
#2 Posted : Thursday, October 18, 2018 10:09:41 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,974

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
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?
MarkFlagg
#3 Posted : Friday, October 19, 2018 7:24:46 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/18/2018(UTC)
Posts: 2
Location: South Africa

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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download