Browse Source

config for debugging

Alexander Rose 5 years ago
parent
commit
f352e19e90
3 changed files with 21 additions and 3 deletions
  1. 2 0
      .vscode/extensions.json
  2. 16 0
      .vscode/launch.json
  3. 3 3
      tsconfig.json

+ 2 - 0
.vscode/extensions.json

@@ -4,7 +4,9 @@
 
 	// List of extensions which should be recommended for users of this workspace.
 	"recommendations": [
+		"firsttris.vscode-jest-runner",
 		"ms-vscode.vscode-typescript-tslint-plugin",
+		"msjsdiag.debugger-for-chrome",
 		"slevesque.shader",
 		"stpn.vscode-graphql",
 		"wayou.vscode-todo-highlight"

+ 16 - 0
.vscode/launch.json

@@ -0,0 +1,16 @@
+{
+    // 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": "launch",
+            "name": "Launch Mol* Viewer",
+            "url": "http://localhost:1338/build/viewer/index.html",
+            "sourceMaps": true,
+            "webRoot": "${workspaceFolder}"
+        }
+    ]
+}

+ 3 - 3
tsconfig.json

@@ -5,7 +5,7 @@
         "alwaysStrict": true,
         "noImplicitAny": true,
         "noImplicitThis": true,
-        "sourceMap": false,
+        "sourceMap": true,
         "noUnusedLocals": true,
         "strictNullChecks": true,
         "strictFunctionTypes": true,
@@ -13,7 +13,7 @@
         "jsx": "react",
         "lib": [ "es6", "dom", "esnext.asynciterable", "es2016" ],
         "rootDir": "src",
-        "outDir": "lib",
+        "outDir": "lib"
     },
-    "include": [ "src/**/*" ],
+    "include": [ "src/**/*" ]
 }