X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=.vscode%2Flaunch.json;h=a5b082c094485ee05f69d45cbe5835ae1341dec2;hb=be47274f79eb0843da4d805cfc417fbf7921379c;hp=3637b39fcfdc3646fbfefb5f05dd0edae2e83d69;hpb=ed89fa27ad268921f2598eae4aa5df975f75553d;p=src%2Fxds%2Fxds-server.git diff --git a/.vscode/launch.json b/.vscode/launch.json index 3637b39..a5b082c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,7 @@ { "version": "0.2.0", - "configurations": [{ + "configurations": [ + { "name": "XDS-Server", "type": "go", "request": "launch", @@ -10,13 +11,25 @@ "host": "127.0.0.1", "program": "${workspaceRoot}", "env": { - "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}", - "ROOT_DIR": "${workspaceRoot}/../../../.." + "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}", }, - "args": ["-log", "debug", "-c", "config.json.in"], + "args": ["-log", "debug"], "showLog": false }, -{ + { + "name": "XDS-Server-Test", + "type": "go", + "request": "launch", + "mode": "test", + "program": "${workspaceRoot}/test", + "env": { + "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}", + "VERBOSE": 1, + }, + "args": ["-test.v", "-test.run", ".*"], + "showLog": false + }, + { "name": "XDS-Server local dev", "type": "go", "request": "launch", @@ -26,28 +39,28 @@ "host": "127.0.0.1", "program": "${workspaceRoot}", "env": { - "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}", - "ROOT_DIR": "${workspaceRoot}/../../../.." + "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}", + "XDS_LOG_SILLY": "0" }, "args": ["-log", "debug", "-c", "__config_local_dev.json"], "showLog": false }, { - "name": "XDS-Server IN DOCKER", - "type": "go", + "name": "Script SDK db-dump", + "type": "python", "request": "launch", - "mode": "debug", - "port": 22000, - "host": "172.17.0.2", - "remotePath": "/xds/src/github.com/iotbzh/xds-server/bin/xds-server", - "program": "${workspaceRoot}", - "env": { - "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}", - "ROOT_DIR": "${workspaceRoot}/../../../.." - }, - "args": [], - "showLog": true + "stopOnEntry": true, + "pythonPath": "${config:python.pythonPath}", + "program": "${workspaceFolder}/scripts/sdks/agl/db-dump", + "args": [ + "-debug" + ], + "cwd": "${workspaceFolder}", + "env": {}, + "envFile": "${workspaceFolder}/.env", + "debugOptions": [ + "RedirectOutput" + ] } - ] }