Visual Studio for Mac调试单元测试 [英] Visual Studio For Mac Debugging Unit Tests
问题描述
我刚刚下载了Mac的VS 2019。控制台项目调试可以很好地达到断点。如果我尝试调试MSTest或NUnit测试项目,则断点将被忽略,而不会出现错误消息。
I just downloaded VS 2019 for Mac. Console projects debugging works fine hitting break points. If I try to debug a MSTest or NUnit test project the break points are ignored with no error message.
我尝试更改选项,我处于调试模式,我尝试重新启动并创建新项目。我已经从nuget下载了MSTest.TestFramework和MSTest.TestAdapter。这些都不起作用。
I have tried changing the options, I am in debug mode, I have tried restarting, and creating new projects. I have downloaded the MSTest.TestFramework, and MSTest.TestAdapter from nuget. None of these have worked.
有任何解决方法的想法吗?
Any ideas on how to resolve this?
推荐答案
转到菜单->查看-测试。
查找测试...右键单击它,然后调试测试
Go to "Menu" -> "View" - "Test'. Find your test... right click on it... and "Debug test"
这篇关于Visual Studio for Mac调试单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!