zhea55
5/25/2017 - 8:31 AM

VSCode Chrome debug

VSCode Chrome debug

{
    // Use IntelliSense to learn about possible Node.js debug 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": "Debug photoBook",
        "url": "http://www.zno.com.dd/photo-books/photobook-edit.html?initGuid=307049",
        "port": 9222,
        "sourceMaps": true,
        "trace": "verbose",
        "webRoot": "${workspaceRoot}",
        "userDataDir": "${workspaceRoot}/.chrome",
        "pathMapping": {
          "/photo-books/": "${workspaceRoot}/dist/photobook/assets/"
        },
        "sourceMapPathOverrides": {
          "webpack:///./*":   "${webRoot}/*", // Example: "webpack:///./src/app.js" -> "/users/me/project/src/app.js"
          "webpack:///*":     "*"            // Example: "webpack:///C:/project/app.ts" -> "C:/project/app.ts"
        }
      }
    ]
}