Reputation: 11595
How do I execute tests in Debug mode using .Net Core and VSCode?
I am currently running the following on the command line:
dotnet Test
However, this is not executing the tests in debug mode.
Do I attach a debugger?
If so... How?
Upvotes: 12
Views: 2366
Reputation: 17369
<TargetFramework>netcoreapp2.0</TargetFramework>
// C# class Program { static void Main(string[] args) { } }
// F# module Program = [<EntryPoint>] let main(args: string[]) = 0
In the main, call the test that you want to debug.
Run the console application in the debugger (usually pressing F5).
This should have no effect on running dotnet test
.
Upvotes: 6