dannycoates/node-inspector — Issue #76: Nodejs code is no longer appearing in my browser
Author: gtracy
Created: 2012-01-06 18:18:48+00:00
State: open

The inspector stopped working for me, and the only thing I'm aware that changed was the recent upgrade to Node 0.6.5.

My server code is no longer appearing in the browser.

Some things that I've noticed that seem to be different...

(1) I'm forced to specify the web-port when I start the inspector. If I don't, the inspector complains with "Error: listen EADDRINUSE"
(2) I don't recall having to run the inspector on 5858 and also specifying the port=5858 in the query string. That's what the inspector is instructing me to do, which feels different from before. Am I mistaken?

The following is my work flow... (using Chrome 16.0.912.75)

> node --debug app.js (app is running on port 8080)
> node-inspector --web-port=5858

In the browser, http://0.0.0.0:5858/debug?port=5858 renders the following in the browser:

Type: connect
V8-Version: 3.6.6.11
Protocol-Version: 1
Embedding-Host: node v0.6.5
Content-Length: 0

My node console displays the following when I navigate to the debug page:

Error 0
GET /debug?port=5858 HTTP/1.1: (no value)
Host: 0.0.0.0:5858
Connection: keep-alive
Cache-Control: max-age=0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: connect.sid=LegwgnPJM20iw5q8qS9K0N29.2zGKS%2BCIFtQSvS54DmCaVu2Drf%2FcL
GET /favicon.ico HTTP/1.1: (no value)
Host: 0.0.0.0:5858
Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: connect.sid=LegwgnPJM20iw5q8qS9K0N29.2zGKS%2BCIFtQSvS54DmCaVu2Drf%2FcL