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

Why does NiM need an active internet connection in order to operate? #84

Closed
ceremcem opened this issue Oct 2, 2020 · 6 comments
Closed

Comments

@ceremcem
Copy link

ceremcem commented Oct 2, 2020

It turns out NiM doesn't work without an active internet connection because it tries to connect to http://chrome-devtools-frontend.june07.com/.

Why does NiM need that while chrome://inspect/#devices perfectly works without it?

More importantly, how can we configure NiM to work without an internet connection?

@june07
Copy link
Owner

june07 commented Oct 2, 2020

Try changing the DevTools URL under NiM options to the locally hosted version.

@ceremcem
Copy link
Author

ceremcem commented Oct 2, 2020 via email

@june07
Copy link
Owner

june07 commented Oct 2, 2020

I assume when you mean no "internet connection is available" you are not including localhost network connectivity...

I've just confirmed that when you switch "Use Alternate DevTools." off and disabling my internet connection to the browser, NiM continues to work as it should. However if you're disabling the network in such a way that prevents any localhost traffic then it will affect NiM's ability to connect to the V8 inspector process which listens on localhost by default.

To be clear your DevTools version in NiM should look like one of the following to debug without Internet connectivity:
image
image

Basically NiM is going to need to communicate with the V8 debugger of your application.

To help more maybe you could provide more information about your dev environment as it relates to what I just wrote...

@ceremcem
Copy link
Author

ceremcem commented Oct 2, 2020

The image I sent is not delivered, here I'm putting it again:

image

The URL is not the same. How should I change it?

I assume when you mean no "internet connection is available" you are not including localhost network connectivity...

My localhost connections work normally, I just switch of the internet, the WAN. Again, the chrome://inspect/#devices works properly at those moments.

@june07
Copy link
Owner

june07 commented Oct 2, 2020

So I did discover a race condition which made the display of the actual configured DevTools Version inaccurate. It will take a bit before the change is reflected in the Edge/Chrome stores.

A fix in your case to display the actual version would be to toggle the "on/off" switch and refresh the options page. Once this fix is pushed, obviously this fix will not be needed.

As to the original issue, the problem is in fact that the DevTools Version was not configured to use the local version. And to change that, you should be able to simply toggle the setting.

@ceremcem
Copy link
Author

ceremcem commented Oct 2, 2020

A fix in your case to display the actual version would be to toggle the "on/off" switch and refresh the options page.

That helped me out:

image

I can confirm that changing this URL lets me use debugger without an active internet connection. Thanks.

@ceremcem ceremcem closed this as completed Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants