How to successfully set a breakpoint within FluentAssertions 2.1.0.0?

191 views Asked by At

Using Visual Studio 2013, I have installed FluentAssertions 2.1.0.0 via NuGet into this C# project, but am unable to set breakpoints within FluentAssertions even though I have pointed the debugger to its source code at tag v2.1. How can I successfully set breakpoints within FluentAssertions?

Furthermore, when catching an exception within FluentAssertions (which is why I need to debug it in the first place), the debugger warns that the source code has changed since the assembly was built, even though the source code is of tag v2.1 which should correspond to binary version 2.1.0.0. Therefore I'm not sure if the source code displayed at the origin of the (null reference) exception is correct, I'm not able to pinpoint the cause of the exception either for the life of me.

1

There are 1 answers

5
Dennis Doomen On

It's probably because I've used [DebugNonUserCode] on most of the FA classes.