sfertman / dn

Docker powered Node.js version manager
MIT License
0 stars 0 forks source link

Do not open TTY (-it flags) unless needed #11

Open sfertman opened 3 years ago

sfertman commented 3 years ago

You never know how external services may use node executable. This is actually a problem if I'm using VSCode to debug a node application. This one is a little bit more tricky to figure out.

sfertman commented 3 years ago

Option 2 above looks like something doable: Node 6:

Usage: node [options] [ -e script | script.js ] [arguments] 
       node debug script.js [arguments] 

Node 8:

Usage: node [options] [ -e script | script.js | - ] [arguments]
       node inspect script.js [arguments]

Node 10:

Usage: node [options] [ -e script | script.js | - ] [arguments]
       node inspect script.js [arguments]

Node 12:

Usage: node [options] [ script.js ] [arguments]
       node inspect [options] [ script.js | host:port ] [arguments]

Node 14:

Usage: node [options] [ script.js ] [arguments]
       node inspect [options] [ script.js | host:port ] [arguments]
sfertman commented 3 years ago

To see the NODE_OPTIONS env that VScode starts debugger with, use "console": "integratedTerminal" option