Debugging MSTest Unittests in Visual Studio Code

后端 未结 4 1703
南方客
南方客 2021-01-19 01:46

I am trying to use Visual Studio Code to Debug a MSTest unit test project. But the tests just run and the breakpoint is never reached.

Here is my launch.json:

<
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-19 02:11

    If you are using the latest version of VS Code (I'm using v1.29.0), debugging unit test is in-built feature.

    You need to first build the solution dotnet build for the test run & debug options to appear.

提交回复
热议问题