To dump some debugging information in client-side javascript I can use console.log(myVar)
. Can I do the same thing in server-side javascript which runs on V8? Is there any way to dump data to error_log file or something?
Asked
Active
Viewed 420 times
3

vtambourine
- 2,109
- 3
- 18
- 27
-
by server side v8 - do you mean node.js? http://stackoverflow.com/questions/3904273/difference-between-console-log-and-sys-puts-in-node-js – Kevin Hakanson Mar 13 '12 at 04:01
-
if you call `console.log(x)` in node.js, `x` will show up in the terminal that you're running node.js in. – Thomas Shields Mar 14 '12 at 22:05