175
rated 0 times
[
182]
[
7]
/ answers: 1 / hits: 18478
/ 10 Years ago, mon, january 26, 2015, 12:00:00
I'm trying to see what the object contains
With console.log(obj)
the console cuts off from the lines and I can't see the entire structure.
Then I tried writing it to a file
fs.writeFile('test', JSON.stringify(obj));
But I get some error about circular references.
Is there any other way to view the object lol? The object is a connection from the nodejs websocket module. The docs are very poor and I can't seem to find the property that holds the IP address :(
More From » node.js