How can I debug my tests .Net Core 2.0 in VSCode

Viewed 2293

I'm searching a way to debug my tests (mstest) .Net Core 2.0 in VSCode?

I didn't find nothing.

Thanks!

3 Answers

Already posted this answer in another thread. Re-posting as I found this thread earlier and thought there was no easy way.

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

*Make sure you have built the project so that tests appear correctly with all options.

enter image description here

You can't, use Visual Studio Community Edition 2017, it is free. And will run your tests projects.

Visual Code is awesome, but it is not a full fledged software developer IDE, though it seems close sometimes.

It best to open your .NET Core projects in Visual Studio sometimes and sometimes just use Visual Code, just depends on what you are trying to do.

Related