-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug 3.0.x messes colors in WebStorm? #493
Comments
@TooTallNate did debug v3 change to outputting to stderr? That's my first guess. |
https://github.com/visionmedia/debug/blob/master/src/node.js#L126 < yup. You can override: const debug = require('debug');
debug.log = console.log.bind(console); |
Yeah :/ IMO Webstorm should just be issuing Common case of IDE's trying to be smarter than the applications (note to IDE developers: don't do this - it never works well). You're welcome to open a ticket with WebStorm or override the output like @thebigredgeek suggests (though I don't recommend doing this at all) - however there's nothing we can really do on our end. Sorry about this :/ |
To be clear, you can parse the output text before passing to |
Closing since there's nothing actionable on our end for this one. |
Hi, |
@segrey Thanks for handling it! Configuring output streams isn't common in unix environments. |
Agree, configuring output stream isn't common, but it was working like this before :). Alright, will try to fix it on WebStorm's side. |
for anyone looking for a quick fix, as mentioned above you can bind to the console. Remember to do it like so: require('debug').log = console.log.bind(console); and not: require('debug')('namespace').log = console.log.bind(console); the latter will only bind log for the particular namespace! |
Hi everyone,
I'm working in WebStorm and have been enjoying debug colors for a good while. However, after an update from debug@v2.6.x to debug@v3.0.x all of the colors are gone being replaced by a straight red.
Downgrading back to debug@v2.6.x - colors are back.
Please refer to attached image. Sequelize uses debug@latest and entries are shown in red, perhaps they used to be colored before update.
app-user:scripts: are my entries written with debug@v2.6.x. Change I debug to v3.0.x, they are turned red.
Any thoughts?
The text was updated successfully, but these errors were encountered: