scenevr / server

:heart_eyes: Create multiuser 3d environments using html-like tags and javascript
http://www.scenevr.com/
BSD 3-Clause "New" or "Revised" License
144 stars 19 forks source link

Add support for the chrome remote debugging protocol #46

Closed bnolan closed 9 years ago

bnolan commented 9 years ago

This will allow users to use the chrome web inspector to debug their scenevr scenes. I've started work on this in the blink branch. I couldn't find any npm modules that emulate the chrome RDP, so I've just started rolling my own. It's pretty loose at the moment, but seems promising.

The goal is to let people view and edit the dom, and use the console to write scripts. Script errors should be written to any connected RDP session. We will need to create a new for sending highlight messages down to the client. Otherwise it seems quite doable. There is one major problem with UUIDs, see next change.

screen shot 2015-03-14 at 1 55 56 am

bnolan commented 9 years ago

Okay, well that was an interesting experiment, but I didn't realise that the chrome developer tools only work in chrome, and aren't even slightly cross-browser. In fact, none of the developer tools are cross browser (webkit inspector, nor firebug), and I don't want to force developers to use only a single browser for editing scenevr scenes. I'll leave the blink branch in place with the prototype code in case we ever come back to this, but for now it looks like we'll be doing our own developer tools. Maybe I can use some UI from the threejs editor.