-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
node --inspect
and node --inspect-brk
not being connected to by chrome
#26887
Comments
cc @nodejs/v8-inspector |
Thanks @vsemozhetbyt, so either downgrade chrome to 72, or use node 11? Did I understand the workaround correctly? |
Let's also see what |
Just tried google canary. Looks like I can "inspect" a running process, but I can't automatically connect with the dedicated dev tools window. Guess it's still in the nightly builds too, curious what v8^ thinks. Thanks for helping. |
Try NiM https://june07.com/nim and see this post regarding how to mix DevTools/Chrome versions https://blog.june07.com/nim-custom-devtools-url |
@dgozman, what did we break? Is it your flat protocol refactoring? |
Got the same problem. Dedicated DevTools does not attach. It immediately connects to the Remote Target EDIT:
Temporary fix |
I'm having the same exact problem so I started debuging using VS Code which works fine. That most likely means that it's not a Node problem but a Chrome problem (in case that wasn't clear already) |
+1 Same problem |
@tiagosiebler , @stoplion did you try different port? |
@DyckGerman yes, I do see the running process as well. If I open the dedicated DevTools for Node, I see in the node app's console that the debugger's attached, but the DevTools window remains unaffected. If I manually click "inspect" on one of the targets in the "Remote Target" list, that successfully connects and lets me use DevTools. It's a weird quirk introduced in a recent update. Using NiM for chrome has eased the pain a bit, but is definitely annoying (I have workers launching on different ports, and it's a pain to edit the port number constantly). |
NiM has the ability to manage multiple ports now.
https://blog.june07.com/nim-tabs/
…On Sun, Apr 21, 2019, 9:11 AM Tiago ***@***.***> wrote:
@DyckGerman <https://github.com/DyckGerman> yes, I do see the running
process as well. If I open the dedicated DevTools for Node, I see in the
node app's console that the debugger's attached, but the DevTools window
remains unaffected.
If I manually click "inspect" on one of the targets in the "Remote Target"
list, that successfully connects and lets me use DevTools. It's a weird
quirk introduced in a recent update. Using NiM for chrome has eased the
pain a bit, but is definitely annoying (I have workers launching on
different ports, and it's a pain to edit the port number constantly).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26887 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACWT35UQSSU5MHR5VRNPQUDPRSGZRANCNFSM4HAV4LNA>
.
|
chrome 74, bug is still reproducible on mac os |
It works just fine to me. I open Chrome 74, go to dedicated frontend, run |
You can use |
Yeah, it started working a couple weeks ago for me. This could probably be closed. |
This has stopped happening for me, on brave:
With node |
Still broken for me. Environment
Using $ asdf current
nodejs 11.14.0 Tried
|
Still not fixed? |
i cannot connect remotlly, i run: node app.js --inspect=0.0.0.0:9229 on remote machine |
Are you forwarding the inspect socket to your local DevTools instance? Sounds like you may need to do that... |
I configured in developer tools to listen to the remote machine on 9229 |
@benag this might sound silly, but I've only got it to work if i have the node --inspect app.js # works
node app.js --insepct # does not |
@tristanHessell this solved the issue for me. The order of the parameters matters. |
I use Same goes for using I wish I knew about these environment variables sooner as it would have saved me a lot of hassle. I hope it helps others |
@tristanHessell changing order of --inspect also worked for me. IMO docs should be updated as this is a rather common problem. This is so painful. Wasting 2h of my time because of broken node.js CLI. |
@chyzwar putting
where:
No documentation should be updated. You waste 2 hours of your life because you didn't know how to run a node application. |
There does not appear to be anything actionable here. |
same problem |
This comment has been minimized.
This comment has been minimized.
Bump. Even just as a temporary workaround. |
Bump. Broken (again?) in Chrome v97. Keep getting this error and breakpoints do not work: Installing the NiM Chrome extension was my only avenue to resume debugging my remote nodejs instance. It will open a DevTools window which works, and is a little different than Chrome's latest one - regular browser window with address bar and file system view is the old style with the cloud for the remote filesystem: devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=192.168.0.123:9229/f9b6d912-3d95-483a-a8c7-f186c0bbf54f I spent about 2hrs trying to figure this out, I hope it helps someone. |
FYI, the DevTools version is very much customizable using NiM. https://blog.june07.com/nim-custom-devtools-url/ As well an Edge version is published for those folks using Microsoft Edge and who would rather install from Edge Add-ons |
on express, using the it's just sad how fucked up this is, debugging in one of the most popular platforms should be easy; and nodejs and express has been out for years... |
Platform: macOS,
Darwin tsbook 18.2.0 Darwin Kernel Version 18.2.0: Fri Oct 5 19:41:49 PDT 2018; root:xnu-4903.221.2~2/RELEASE_X86_64 x86_64
Subsystem:
I recently updated google chrome to the latest version. Normally for debugging during dev, I:
chrome://inspect/#devices
in chromeAs soon as I launch any node process in terminal using either
node --inspect
ornode --inspect-brk
, within a few seconds my open dev tools window will connect.I see this in the console:
I see this in dev tools:
Yet the dedicated window remains unconnected:
Things I've tried:
--inspect-brk=127.0.0.1:9229
--inspect-brk=localhost:9229
How can I troubleshoot this? Bit stuck without it. Tried brave too, since it's the same engine, same behaviour.
Thanks in advance.
The text was updated successfully, but these errors were encountered: