How to use it?
Install v1.7.1-rc1 (the only difference compared to v1.7.0 is the debugging available).
Install Node Inspector on your PC or on Raspberry Pi.
Add this line just after another "export" in /etc/init.d/z-way-server:
Code: Select all
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/z-way-server/libs
export V8_DEBUG=yes
Code: Select all
/etc/init.d/z-way-server restart
Code: Select all
ssh -N pi@IP_OF_RASPBERRY_PI -L 8183:127.0.0.1:8183
Code: Select all
node-inspector --debug-port 8183
Enjoy!
NB! This is VERY experimental and sometimes v8 (and Z-Way) crashes if you try to inspect Z-Way internal (native) objects in JavaScript (for example, zway.devices and all others). So, do not watch them.
NB! Use old version of node-inspector. Check this: viewtopic.php?f=3419&t=24237&p=66327#p66054