mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
9b67736212
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.
91 lines
2.6 KiB
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |