DEBUG_FD being defined in nodes process.env, v7 deprecated

http://i.imgur.com/yGTScEQ.png vs http://i.imgur.com/hElY5q1.png

where can I stop the IDE from defining DEBUG_FD, not a huge deal if I cant, just very annoying using eslint with it throwing this warning everywhere in the event logs. 

-----

WebStorm 2016.3.2
Build #WS-163.9166.30, built on December 12, 2016
JRE: 1.8.0_112-release-408-b2 x86
JVM: OpenJDK Server VM by JetBrains s.r.o

7 comments

WebStorm itself doesn't define this variable... Are you using visionmedia? See https://github.com/visionmedia/debug/issues/386

0

No it definitely is WebStorm or something web storm uses,

running this (nothing else) "console.log(`DEBUG_FD: ${process.env.DEBUG_FD} type:(${ typeof process.env.DEBUG_FD})`);" in WebStorm DEBUG_FD = 1, in a cmd console or any other IDE that supports node its undefined.

0

and yes visionmedia is the module that produces the warning, but I want WebStorm to not define DEBUG_FD, not visionmedia to fix the warning.

0

I checked and yes, indeed it's set to 1 in NodeCommandLineUtil.java to redirect debug output to stdout; in WebStorm node.js console, stderr output can't be colored.

This variable will be removed in 2017.1 - with the consequence of losing debug output coloring

0

it is planned for the end of March

0

I've just opened a PR to fix that issue with debug package. hoping maintainers accept that :))

1

Please sign in to leave a comment.