fleet/.vscode/launch.json
Roberto Dip 9b67736212
document how to run dlv in headless mode and connect to the Redis CLI (#5535)
This adds two small changes to the contributing docs:

1. Instructions to connect to a local Redis REPL
2. Instructions to start `dlv` in headless mode and attach debuggers to it. I modified `.vscode/launch.json` with a new launch debug config and added instructions for vim.
2022-05-10 11:51:09 -03:00

91 lines
2.6 KiB
JSON

{
// 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": "Test package",
"type": "go",
"request": "launch",
"mode": "test",
"cwd": "${fileDirname}",
"env": {
"MYSQL_TEST": 1,
"REDIS_TEST": 1,
"NETWORK_TEST": 1
},
"buildFlags": "-tags='full,fts5'",
"program": "${fileDirname}"
},
{
"name": "Test file",
"type": "go",
"request": "launch",
"mode": "test",
"cwd": "${fileDirname}",
"env": {
"MYSQL_TEST": 1,
"REDIS_TEST": 1,
"NETWORK_TEST": 1
},
"buildFlags": "-tags='full,fts5'",
"program": "${file}"
},
{
"name": "Fleet serve",
"type": "go",
"request": "launch",
"mode": "auto",
"buildFlags": "-tags='full,fts5'",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/cmd/fleet",
"args": [
"serve",
"--dev",
"--logging_debug"
]
},
{
"name": "Fleet serve (licensed)",
"type": "go",
"request": "launch",
"mode": "auto",
"buildFlags": "-tags='full,fts5'",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/cmd/fleet",
"args": [
"serve",
"--dev",
"--logging_debug",
"--dev_license"
]
},
{
"name": "Attach to a running Fleet server",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 61179,
"host": "127.0.0.1",
},
{
"type": "pwa-chrome",
"name": "Fleet UI (Chrome)",
"request": "launch",
"url": "https://localhost:8080"
},
{
"type": "firefox",
"name": "Fleet UI (Firefox)",
"request": "launch",
"url": "https://localhost:8080",
"pathMappings": [
{
"url": "webpack:///frontend",
"path": "${workspaceFolder}/frontend"
}
]
}
]
}