Where is the node.js file in the stack trace?

Obviously, I'm pretty new to node.js. I am trying to debug a node.js application and see node.js in a stack trace.

I would like to make some calls there sys.puts, but I can not find the node.js that my server starts.

Is there any way to find out where node.js is? Is there a Ruby node equivalent __FILE__in a node?

Thanks Brian

+3
source share
1 answer

It is hidden in the source along with C ++ sources and headers in <node -installation> /src/node.js .

node.js , . make. , , process.stdout.write() sys.print().

!

+3

Source: https://habr.com/ru/post/1738917/


All Articles