react-firebase-starter
react-firebase-starter copied to clipboard
How to configure VSCode launch.json for debug?
'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/**"
]
},
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"
}