After update to Webstorm 2018.3 - Node debug connector error

 So, after this update, when I try to debug my node app using node 10.1.0 that used to work ok with 2018.2,  this error comes up:

Debugger attached.
Error in JetBrains node debug connector: TypeError: Cannot read property 'port' of null
at Object.<anonymous> (/private/var/folders/3k/54pjx4d56lxgq1k9hf0gggnr0000gn/T/debugConnector.183.4284.130.js:9:28)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at Module._preloadModules (internal/modules/cjs/loader.js:781:12)
at preloadModules (internal/bootstrap/node.js:555:7)
at startup (internal/bootstrap/node.js:216:9)

Nothing was changed in the Run configuration. No node options provided.
Tried adding  "--inspec" and "--inspect-brk"  to no avail.

Couldn't find any pointer to solve this issue on this forum or on the net.


Comment actions Permalink is fixed in 2018.3.1

As a workaround try disabling js.debugger.use.node.options key in Registry ( Help | Find action, type Regisry to locate it) 

Comment actions Permalink

Perfect! The workaround worked as expected putting the error away.

I'll re-enable once I get 2018.3.1 in the toolbox, to see if it got fixed.

As of now the latest is 2018.3.

Thanks a lot!

Comment actions Permalink

I have the same issue with intelliJ IDea latest version,

on Mac OSX, how can this be solved?


Comment actions Permalink

What IDEA build do you use? Also, does disabling js.debugger.use.node.options key help?

Comment actions Permalink



Where should we put the js.debugger.use.node.options ?

We're using IDEA 2018.3.1




Comment actions Permalink

What should be done for Mac ? there is no registry like windows.

Comment actions Permalink

It's the IDE registry, not OS one. You can use Help | Find action to locate it, just as it's written in my comment:

Comment actions Permalink

Thanks, the work around works :)
we're able to debug -)

It's also possible to use this short cut to get to the registry on MAC OSX:

CMD / ALT / ShiFT - /


Comment actions Permalink

Fine, thanks for letting me know:)

Note that we've made another fix that will hopefully help, it will be included in 2018.3.3 - see

Comment actions Permalink

I had the same problem - can not debug in docker, it worked though after     js.debugger.use.node.options=false


WebStorm 2022.1 EAP
Build #WS-221.4994.43, built on March 11, 2022
Expiration date: April 10, 2022
Runtime version: amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.13.0-35-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 750M
Cores: 4

Current Desktop: Undefined


Please sign in to leave a comment.