-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedded PDB causes VS to jump to Shouldly internals instead of user test code when debugging assertions #769
Comments
this seems like a bug in VS. and not something libraries should need to work around |
I agree, and yet practically speaking it's so nasty on a regular basis. |
yep but you should be raising it with the VS team. given many OSS projects are shipping with embedded symbols, shouldly no using embedded symbols will only slightly mitigate the issue |
Debugging a test stops you in an inappropriate stack frame whenever an assertion fails. That happens at a rate far beyond any other library I can think of in the course of any kind of debugging (app or tests). |
all the more reason to raise a bug with the VS team so they can fix it asap |
That's for sure. A both-and strategy solves the immediate need, and also helps people who don't stay on (or can't use) the latest VS all the time. |
This is caused by VS not following the "Just My Code" setting and treating any DLL that contains embedded PDB as the user's code.
We had the same problem at NUnit and decided to go the route of the new recommended snupkg symbol package format.
https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/nuget#symbol-packages
https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
https://devblogs.microsoft.com/nuget/improved-package-debugging-experience-with-the-nuget-org-symbol-server/
The text was updated successfully, but these errors were encountered: