dannycoates/node-inspector — pull request #94 by vadimi (2012-05-07 00:02:05+00:00)
Title: Node-inspector stops working when Watch Expressions panel contains non-ASCII characters

When I enter non-ASCII characters into Watch Expressions panel debugging session crashes. After that I have to clear browser Local Storage as node-inspector saves all watch expressions there.

The problem with non-ASCII characters is that V8 remote debugger expects the length of the whole message to be sent in Content-Length header. But simple data.length works for ASCII characters only. So the Content-Length should be calculated through Buffer class.