Unfortunately, the correct mapping of your source code to the Webpack file has changed several times.
You have already enabled diagnosticLogging in launch.json , which means you should have these lines in your JavaScript console:
SourceMap: mapping webpack:
This should give you a clear idea of where it is trying to find your source code.
Then you add the sourceMapPathOverrides entry to launch.json to help her find your files. It should look something like this:
"sourceMapPathOverrides": { "webpack:///./*": "${workspaceRoot}/SourceFolder/*" },
Obviously replacing SourceFolder with the actual path.
Edit: In 2019, this is still valid, but the way it is turned on has changed. diagnosticLogging been replaced by trace , which has exactly one valid value, namely trace .
Thus, your installation will look like this:
{ "name": "Launch localhost with sourcemaps", "type": "chrome", "request": "launch", "url": "http://localhost:3000/index.html", "sourceMaps": true, "webRoot": "${workspaceRoot}", "trace": "verbose" }
This will give you a lot of output, including lines starting with SourceMap: mapping , which you can use to build the correct set of sourceMapPathOverrides , as described above.