Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspector hangs when running offline (on Win7) #645

Closed
seanpoulter opened this issue May 15, 2015 · 6 comments
Closed

Inspector hangs when running offline (on Win7) #645

seanpoulter opened this issue May 15, 2015 · 6 comments

Comments

@seanpoulter
Copy link

With the node-inspector started with the PC offline:

node-inspector
Node Inspector v0.10.1
Visit http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858 to start debugging.

starting a process to debug hangs:

node --debug node_modules\karma-cli\bin\karma start
Debugger listening on port 5858

The served page loads the inspector but not the debugging data and sources. Checking the console for the node-inspector shows:

Request with id = 10 failed. "ErrorNotConnected: Debugged process exited."
InspectorBackendClass.AgentPrototype.dispatchResponse @ InspectorBackend.js:958
InspectorBackendClass.Connection.dispatch @ InspectorBackend.js:482
InspectorBackendClass.WebSocketConnection._onMessage @ InspectorBackend.js:690

Environment:
node v0.12.2 x64 on Windows 7 x64, running without an active network connection


Please let me know any next steps to troubleshoot this. It's quite an inconvenience.

@3y3
Copy link
Member

3y3 commented May 15, 2015

How about

>node --debug-brk node_modules\karma-cli\bin\karma start

@seanpoulter
Copy link
Author

When running the following offline:

(other console)>node-inspector
>node --debug-brk node_modules\karma-cli\bin\karma start

the same behaviour shows. Opening the served inspector in the browser hasn't loaded the source files. Although the Chrome console (for the inspector) does show an additional error id 25:

Request with id = 10 failed. "ErrorNotConnected: Debugged process exited."
    InspectorBackendClass.AgentPrototype.dispatchResponse @ :8080/sdk/InspectorBackend.js:958
Request with id = 25 failed. "Error: Not implemented."
    InspectorBackendClass.AgentPrototype.dispatchResponse @ :8080/sdk/InspectorBackend.js:958

@3y3
Copy link
Member

3y3 commented May 16, 2015

Oh, stop! You can reproduce this only if you don't have any network connections?

@seanpoulter
Copy link
Author

Yes 3y3, it works great otherwise. This only is a problem when the PC is not connected, as an example when the wifi drops. I was expecting this to work locally and not require the internet. Should it?

@3y3
Copy link
Member

3y3 commented May 16, 2015

I have the same error. This is a nodejs error in dns module. In other words dns can't resolve localhost in debugger connection when there is no connections.
This was fixed in iojs, but exists in 0.12.
To fix this problem on my machine I installed microsoft loopback adapter.

@seanpoulter
Copy link
Author

OK, thanks for confirming @3y3.

I opened an issue for node yesterday for dns resolvning localhost: nodejs/node-v0.x-archive#25338, I just didn't know how to workaround it to confirm it was the same for this.

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

No branches or pull requests

3 participants
@seanpoulter @3y3 and others