Skip to content

Commit 4143349

Browse files
author
Brian Canzanella
committed
adds instructions for debugging the agent with VS
1 parent b38e1d9 commit 4143349

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: vs/docs/dev.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,21 @@ It will do an initial full build of the webview and then watch for file changes,
5858

5959
### Debugging
6060

61-
#### Using Visual Studio
61+
#### Visual Studio
6262

6363
1. Ensure that the agent and webview have been built or that the watcher is running for both (see the sections above)
6464
1. Open the Visual Studio solution (`vs/src/CodeStream.VisualStudio.sln`),
6565
1. Press `F5` to build and run the solution. This will open a new "experimental" version of Visual Studio.
6666

6767
>NOTE: you cannot have the CodeStream for VS extension installed from the marketplace AND run an experimental debugging instance of VS (you have to uninstall the version from the marketplace first)
6868
69+
#### CodeStream LSP Agent
70+
71+
To debug the CodeStream LSP agent you will need both Visual Studio and VS Code.
72+
- Ensure your shared/agent artifact is recently built.
73+
- Once you have started debugging CodeStream in Visual Studio, leave it running, and in VS Code with the `codestream` repo open, choose `Attach to Agent (VS/JB) (agent)` from the launcher dropdown. This is allow you to attach to the running shared/agent process that Visual Studio spawned.
74+
- From there, you can add breakpoints to the shared/agent code in VS Code. As requests and notifications to the agent happen, your breakpoints will be triggered.
75+
6976
### Build (CI)
7077

7178
Visual Studio builds are attached to an internal Team City build process.

0 commit comments

Comments
 (0)