Update vsc launcher.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 7 Aug 2017 17:42:43 +0000 (19:42 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 7 Aug 2017 17:42:43 +0000 (19:42 +0200)
.vscode/launch.json

index 8bdde69..3637b39 100644 (file)
@@ -1,7 +1,7 @@
 {
     "version": "0.2.0",
     "configurations": [{
-            "name": "XDS-Server local",
+            "name": "XDS-Server",
             "type": "go",
             "request": "launch",
             "mode": "debug",
             "args": ["-log", "debug", "-c", "config.json.in"],
             "showLog": false
         },
+{
+            "name": "XDS-Server local dev",
+            "type": "go",
+            "request": "launch",
+            "mode": "debug",
+            "remotePath": "",
+            "port": 2345,
+            "host": "127.0.0.1",
+            "program": "${workspaceRoot}",
+            "env": {
+                "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}",
+                "ROOT_DIR": "${workspaceRoot}/../../../.."
+            },
+            "args": ["-log", "debug", "-c", "__config_local_dev.json"],
+            "showLog": false
+        },
         {
             "name": "XDS-Server IN DOCKER",
             "type": "go",
@@ -34,4 +50,4 @@
         }
 
     ]
-}
\ No newline at end of file
+}