Fixed GOPATH setup while debugging in VSC
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 18 Jan 2018 17:00:11 +0000 (18:00 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 18 Jan 2018 17:00:11 +0000 (18:00 +0100)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
.vscode/launch.json

index f976fb6..3f4facb 100644 (file)
@@ -10,8 +10,7 @@
             "host": "127.0.0.1",
             "program": "${workspaceRoot}",
             "env": {
-                "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}",
-                "ROOT_DIR": "${workspaceRoot}/../../../.."
+                "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}",
             },
             "args": ["-log", "debug"],
             "showLog": false
@@ -26,8 +25,7 @@
             "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"],