JS Debugging?

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
kWave
Posts: 34
Joined: 11 Dec 2016 00:02

JS Debugging?

Post by kWave »

Hey,

i want to enable JS Debugging on my Z-Way server to watch console.log() messages

I already tried everything in this thread, but it seems to be outdated, as nothing worked for me.


How can i enable JS debugging? (latest Z-Way Version)
kWave
Posts: 34
Joined: 11 Dec 2016 00:02

Re: JS Debugging?

Post by kWave »

Okay, i got the debugger running using these steps:

sudo apt-get install npm
sudo npm install -g node-inspector@0.7.4

added "export V8_DEBUG=yes" to /etc/init.d/z-way-server
added "<automation-file>automation/main.js</automation-file>" and "<debug-port>8183</debug-port>" to /opt/z-way-server/config.xml

When i start the node-inspector ("sudo node-inspector --debug-port 8183) and restart the z-way-server,
i can see all the files, can set breakpoints, but there are no outputs from console.log shown... ?!

How can i see them? (and yes, "all" is selected in the debugging console)

I also get this error: "Page.getResourceTree failed. ReferenceError: process is not defined"
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: JS Debugging?

Post by PoltoS »

console.log is ouptuting in log only
Post Reply