Redirect (or tee) Node.js output to file

I'm debugging a Node.js script that outputs information via console.log(). How can I set up the Run/Debug Configuration to `tee` the output to a file, but still see it in the Run/Debug panel?

At the shell, I'm running node myscript.js | tee output.log. How can I replicate that in WebStorm?

I've found some related threads, but it seems this has been requested since 2005 and is still not possible.

1 comment

You can use a node wrapper. Please see comments in https://youtrack.jetbrains.com/issue/WEB-11774 for some tips

0

Please sign in to leave a comment.