Browse Source

add debug configuration for firefox

Yuki Takei 5 years ago
parent
commit
86037b82d2
1 changed files with 19 additions and 1 deletions
  1. 19 1
      .vscode/launch.json

+ 19 - 1
.vscode/launch.json

@@ -29,11 +29,29 @@
         "request": "launch",
         "request": "launch",
         "name": "Debug: Chrome",
         "name": "Debug: Chrome",
         "sourceMaps": true,
         "sourceMaps": true,
-        "webRoot": "${workspaceFolder}/public",
         "sourceMapPathOverrides": {
         "sourceMapPathOverrides": {
           "webpack:///*": "${workspaceFolder}/*"
           "webpack:///*": "${workspaceFolder}/*"
         },
         },
+        "webRoot": "${workspaceFolder}/public",
         "url": "http://localhost:3000"
         "url": "http://localhost:3000"
+      },
+      {
+        "type": "firefox",
+        "request": "launch",
+        "name": "Debug: Firefox",
+        "reAttach": true,
+        "url": "http://localhost:3000",
+        "webRoot": "${workspaceFolder}/public",
+        "pathMappings": [
+          {
+            "url": "webpack:///src",
+            "path": "${workspaceFolder}/src"
+          },
+          {
+            "url": "http://localhost:3000",
+            "path": "${workspaceFolder}/public"
+          }
+        ]
       }
       }
     ]
     ]
 }
 }