Fixed GOPATH setup while debugging in VSC
[src/xds/xds-server.git] / .vscode / launch.json
index 3637b39..3f4facb 100644 (file)
             "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 local dev",
             "type": "go",
             "request": "launch",
             "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",
+            "type": "node",
             "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
+            "name": "Script sdk list",
+            "program": "${workspaceFolder}/scripts/sdks/agl/list"
         }
-
     ]
 }