Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

I didn't find nothing.

Thanks!

like image 740
Stephany Henrique Avatar asked Sep 21 '17 20:09

Stephany Henrique


1 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

like image 55
Arghya C Avatar answered Sep 22 '22 12:09

Arghya C