Skip to content

Commit a2ec75f

Browse files
Minor documentation improvements (dotnet#36834)
1 parent aa7668d commit a2ec75f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/workflow/debugging/libraries/debugging-vscode.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
- Open the folder containing the source you want to debug in VS Code - i.e., if you are debugging a test failure in System.Net.Sockets, open `runtime/src/libraries/System.Net.Sockets`
66
- Open the debug window: `ctrl-shift-D` or click on the button on the left
77
- Click the gear button at the top to create a launch configuration, select `.NET Core` from the selection dropdown
8-
- In the `.NET Core Launch (console)` configuration do the following
8+
- In the ".NET Core Launch (console)" `launch.json` configuration file make the following changes:
99
- delete the `preLaunchTask` property
1010
- set `program` to the full path to `dotnet` in the artifacts/bin/testhost directory.
1111
- something like `artifacts/bin/testhost/netcoreapp-{OS}-{Configuration}-{Architecture}`, plus the full path to your dotnet/runtime directory.
1212
- set `cwd` to the test bin directory.
1313
- using the System.Net.Sockets example, it should be something like `artifacts/bin/System.Net.Sockets.Tests/netcoreapp-{OS}-{Configuration}-{Architecture}`, plus the full path to your dotnet/runtime directory.
1414
- set `args` to the command line arguments to pass to the test
1515
- something like: `[ "exec", "--runtimeconfig", "{TestProjectName}.runtimeconfig.json", "xunit.console.dll", "{TestProjectName}.dll", "-notrait", ... ]`, where TestProjectName would be `System.Net.Sockets.Tests`
16-
- to run a specific test, you can append something like: `[ "method", "System.Net.Sockets.Tests.{ClassName}.{TestMethodName}", ...]`
16+
- to run a specific test, you can append something like: `[ "-method", "System.Net.Sockets.Tests.{ClassName}.{TestMethodName}", ...]`
1717
- Set a breakpoint and launch the debugger, inspecting variables and call stacks will now work

0 commit comments

Comments
 (0)