Node-inspector stops working when Watch Expressions panel contains non-ASCII characters #94

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

vadimi commented May 7, 2012

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.

Nodejs v0.6.17 on Windows 7 x64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment