Daniel Birowsky Popeski
Daniel Birowsky Popeski

Reputation: 9286

Getting "Connection Refused" in debugger

I'm trying to run this npm script with debugger:

  "scripts": {
    "start": "webpack-dev-server --inline --hot -d"
  },

enter image description here

here's how it's configured:

enter image description here

here's how it fails:

enter image description here

Upvotes: 1

Views: 2637

Answers (1)

Nick Gent
Nick Gent

Reputation: 50

You'll have to add another script to your package.json that looks something like this (and change the configuration to point to it rather than start):

"startDebug": "node $NODE_DEBUG_OPTION ./node_modules/path/to/webpack-dev-server.js --inline --hot -d"

Alternatively, if you don't need debug capabilities, you should be able to run (not debug) that configuration without any problem.

Upvotes: 3

Related Questions