Browse Source

Setup debugging

trethaller 7 years ago
parent
commit
8ef3a98916
2 changed files with 16 additions and 1 deletions
  1. 15 0
      .vscode/launch.json
  2. 1 1
      bin/hide.cmd

+ 15 - 0
.vscode/launch.json

@@ -0,0 +1,15 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "type": "chrome",
+            "request": "attach",
+            "name": "Attach to Chrome",
+            "port": 9222,
+            "webRoot": "${workspaceFolder}/bin"
+        }
+    ]
+}

+ 1 - 1
bin/hide.cmd

@@ -1,2 +1,2 @@
 @cd %~dp0
-@nwjs\nw.exe --nwapp package.json %*
+@nwjs\nw.exe --nwapp package.json % --remote-debugging-port=9222