Skip to content

Commit

Permalink
Update VSCode launch.json to enable easier debugging (#789)
Browse files Browse the repository at this point in the history
* Update VSCode launch.json to enable easier debugging

* Add index path
  • Loading branch information
mmanela authored Jun 7, 2024
1 parent b8ea92d commit b41ceb2
Showing 1 changed file with 45 additions and 13 deletions.
58 changes: 45 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,46 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Process (from list)",
"type": "go",
"request": "attach",
"mode": "local"
},
]
}
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Index folder",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "cmd/zoekt-git-index",
"cwd": "${workspaceFolder}",
"args": ["-index", "${input:indexPath}", "${input:path}"]
},
{
"name": "Webserver",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "cmd/zoekt-webserver",
"cwd": "${workspaceFolder}",
"args": ["-index", "${input:indexPath}"]
},
{
"name": "Attach to Process (from list)",
"type": "go",
"request": "attach",
"mode": "local"
}
],
"inputs": [
{
"id": "path",
"description": "Please enter the path to the project to index",
"default": "",
"type": "promptString"
},
{
"id": "indexPath",
"description": "Enter the path where indexes are stored",
"default": "${userHome}/.zoekt",
"type": "promptString"
}
]
}

0 comments on commit b41ceb2

Please sign in to comment.