mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
vscode debugging.
This commit is contained in:
parent
924be20505
commit
c83883fd1e
@ -2,4 +2,19 @@
|
|||||||
|
|
||||||
You need to run all dependencies with `deps` command before you start debugging.
|
You need to run all dependencies with `deps` command before you start debugging.
|
||||||
|
|
||||||
Make sure your local IP is correct in `.vscode/launch.json`,
|
Create `.env.development` in repository root. Make sure your local IP is correct.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
NEKO_WEBRTC_NAT1TO1=10.0.0.8
|
||||||
|
```
|
||||||
|
|
||||||
|
# without container
|
||||||
|
|
||||||
|
- Make sure `pulseaudio` contains correct configuration.
|
||||||
|
- Specify `DISPLAY` that is being used by xorg.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
DISPLAY=:0
|
||||||
|
NEKO_WEBRTC_NAT1TO1=10.0.0.8
|
||||||
|
NEKO_SERVER_BIND=:3000
|
||||||
|
```
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
bin/
|
bin/
|
||||||
.idea
|
.idea
|
||||||
|
.env.development
|
||||||
|
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@ -7,12 +7,14 @@
|
|||||||
{
|
{
|
||||||
"name": "launch",
|
"name": "launch",
|
||||||
"type": "go",
|
"type": "go",
|
||||||
|
"debugAdapter": "dlv-dap",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mode": "debug",
|
"mode": "debug",
|
||||||
"program": "${workspaceFolder}/cmd/neko",
|
"program": "${workspaceFolder}/cmd/neko",
|
||||||
"output": "${workspaceFolder}/bin/debug/neko",
|
"output": "${workspaceFolder}/bin/debug/neko",
|
||||||
"cwd": "${workspaceFolder}/",
|
"cwd": "${workspaceFolder}/",
|
||||||
"args": ["serve", "-d", "--webrtc.nat1to1", "192.168.1.80"]
|
"args": ["serve", "-d", "-c", "dev/runtime/config.yml"],
|
||||||
|
"envFile": "${workspaceFolder}/.env.development"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -3,14 +3,7 @@
|
|||||||
"go.inferGopath": false,
|
"go.inferGopath": false,
|
||||||
"go.autocompleteUnimportedPackages": true,
|
"go.autocompleteUnimportedPackages": true,
|
||||||
"go.delveConfig": {
|
"go.delveConfig": {
|
||||||
"useApiV1": false,
|
"useApiV1": false
|
||||||
"dlvLoadConfig": {
|
|
||||||
"followPointers": true,
|
|
||||||
"maxVariableRecurse": 3,
|
|
||||||
"maxStringLen": 400,
|
|
||||||
"maxArrayValues": 400,
|
|
||||||
"maxStructFields": -1
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"[go]": {
|
"[go]": {
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user