Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update VSCode launch.json to enable easier debugging #789

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}",
mmanela marked this conversation as resolved.
Show resolved Hide resolved
"args": ["${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"
}
]
}
Loading