Skip to content

Useful Technical details

Tony edited this page Jul 9, 2019 · 28 revisions

Connecting Chrome debug tools to Node session running on the Raspberry Pi:

On the Raspberry Pi...

Kill the existing node session...

 sudo service homebridge stop<br>
 sudo killall nodejs

Start a debug node session...

 cd /Downloads/HAP-NodeJS
 sudo node --inspect=0.0.0.0:9229 BridgedCore.js

On the remote ( Chrome ) device...

 Open chrome session<br>
 Browse to chrome://inspect/
 Click on 'open dedicated dev tools for node'
 Add <IP address of the Raspberry Pi>:<Port 9229> e.g. 192.168.1.100:9229

After a few seconds, the Raspberry Pi node session should appear under 'Remote Target'

Running the alarm service as a console app...

tbd

Running the HomeBridge service as a console app...

tbd