react-firebase-starter icon indicating copy to clipboard operation
react-firebase-starter copied to clipboard

How to configure VSCode launch.json for debug?

Open alexicum opened this issue 8 years ago • 1 comments

'Breakpoint ignored because generated code not found (source map problem?).'

"configurations": [
    {
      "type": "chrome",
      "request": "launch",
      "name": "Launch Chrome against localhost",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceRoot}",
      "userDataDir": "${workspaceRoot}/.vscode/chrome",
      "sourceMaps": true,
      "skipFiles": [
        "node_modules/**"
      ]
    },

alexicum avatar May 11 '17 07:05 alexicum

Use inline-source-map in webpack.config.js: devtool: isDebug ? 'inline-source-map' : false,

launch.json:

    {
      "type": "chrome",
      "request": "launch",
      "name": "Launch Chrome against localhost",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceRoot}/src",
      "userDataDir": "${workspaceRoot}/.vscode/chrome"
    }

alexicum avatar May 15 '17 06:05 alexicum