Skip to content

Commit

Permalink
Make the Agent debugging launch configuration work on Windows. (#5061)
Browse files Browse the repository at this point in the history
This helps debug Agent during Windows development.

## Test plan

Manual test: In VSCode on Windows, pick the "Launch Agent port 3113"
launch configuration and hit Play.
  • Loading branch information
dominiccooney authored Jul 31, 2024
1 parent 4eaf4d8 commit d5c6c1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"name": "Launch Agent port 3113",
"program": "${workspaceFolder}/agent/dist/index.js",
"runtimeArgs": ["--enable-source-maps", "--preserve-symlinks"],
"args": ["api", "jsonrpc-stdio"],
"preLaunchTask": "Build Agent",
"env": {
"CODY_AGENT_DEBUG_REMOTE": "true",
Expand Down
3 changes: 3 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"type": "shell",
"label": "Build Agent",
"command": "pnpm install && pnpm build",
"windows": {
"command": "pnpm install; pnpm build",
},
"options": {
"cwd": "${workspaceFolder}/agent"
}
Expand Down

0 comments on commit d5c6c1f

Please sign in to comment.