Reputation: 1984
I have a project that has implementation in a netstandard 1.6 project, and my unit tests are in a .NET Core 2.0 project. I'm running Visual Studio 2017 Mac version 7.3 (build 764).
The tests run from the Unit Test pad just fine (green circle and console output happens if I add output), but the debugger doesn't break when I set a breakpoint or expicitly throw an exception in the test. I've tried right-clicking on the test and selecting 'Debug Test' and right-clicking the test and selecting 'Run With'->'.NET Core Debugger'.
Here's a screenshot of the project with the project nodes expanded, the unit test displayed, the Unit Test pad expanded, and the About window up so the exact VS2017 Mac version is shown.
Is this a bug in VS2017 Mac, or am I missing something?
Upvotes: 6
Views: 1594
Reputation: 1984
The problem turned out to be that the debugger process needed to be granted some admin rights. After rebooting my machine and trying again to debug my unit test, I was prompted to enter the user credentials for an admin user. Once I did that, I was able to hit breakpoints just fine.
It's possible I cancelled out of the request for admin credentials by accident (or it was hidden behind other windows) when trying to debug wasn't working.
Upvotes: 3