first serve folder on 9966
http-server -p 9966
then open remote debugging chrome:
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary http://localhost:9966/ --remote-debugging-port=9222
then run debugger
node debugger.js
and reload page in Chrome (without opening dev tools). Output:
Debugger enabled
got script ID 43
Err with setScriptSource 43 Uncaught Script not found
{ scriptSource: 'document.body.style.background = \'blue\'' }
On Chrome Canary 42.0.2303.0.
Same problem with Chrome 40.0.2214.111.
OSX Yosemite 10.10.1
But if you want live-edit you'll need to update function definitions anyway.
Here's where I went with this: https://gist.github.com/paulirish/920a260cadfe05e8388c
index.js:
debugger.js snippet