-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update VSCode launch.json to enable easier debugging (#789)
* Update VSCode launch.json to enable easier debugging * Add index path
- Loading branch information
Showing
1 changed file
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |