How to use VS Code debugger with webpack-dev-server (breakpoints ignored)

From my experience (about 15 mins ago), if ‘webpack.config.js’ has a value for the context property, then that has to be accounted for for ‘.vscode/launch.json’.

For an example, if ‘webpack.config.js’ has the following:

module.exports = {
  context: path.resolve(__dirname, 'src'),
  entry: './index.ts',

Then launch.json needs that context (‘src’) too:

"url": "http://localhost:8080/",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,

I just updated/fixed my repo so now TypeScript breakpoints should bind.

https://github.com/marckassay/VSCodeNewProject

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)