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.
sys.puts
Is there any way to find out where node.js is? Is there a Ruby node equivalent __FILE__in a node?
__FILE__
Thanks Brian
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().
!
Source: https://habr.com/ru/post/1738917/More articles:как вы произвольно устанавливаете значение в выпадающем меню с помощью jquery - jqueryDebugging mod_rewrite - debuggingIs there a Mercurial equivalent for gitosis? - version-controlchecking future java version of ant script - javaASP.NET MVC: как разрешить некоторую HTML-разметку в HTML-кодированном контенте? - asp.net-mvcHow can I make my Perl Jabber bot an event driven program? - eventsBlackberry - port estimation Android applications with GPS and Google Maps - androidSpark viewer - why is there no VS integration in version 1.1? - asp.net-mvcJava call plugin class - javaHow to verify that "puts" was called with a specific message? - ruby | fooobar.comAll Articles