-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Breakpoints not working inside Chrome devtools since v10.12.0
#23693
Comments
I can reproduce. bisecting... |
I'm having trouble to make it work with any version of Node. Tried 10.12.0, 10.11.0, 10.10.0, 9.11.2 and 8.12.0. |
I had a similar sure with vscode, basically debugging typescript with sourcemap stopped working, and debugging the emitted .js code works, but the file I am debugging is another "read only file" with the wrapper function around. It looks like node.js 10.12 is "exposing" (not sure the right word here) the wrapped file rather than the original source file, which can throw the debugger off. All work fine with 10.11 |
I believe that I am responsible for this issue. Node 10.12 reports unified file urls in protocol instead of platform specific paths. |
It works with Chrome 72. |
Ok, so, if this one is a chrome issue, then, my VSCode debug issue with node 10.12 is not this issue. |
This issue is solved by Chrome 71 indeed. Thanks! I am not sure whether to close this issue right away and whether you would prefer to patch Node.js until Chrome 71 is out of beta. |
Another solution if using NiM is to simply use the 71 DevTools version with whatever browser version you happen to be running. No need to wait for Chrome moving from beta. See here for more details: https://blog.june07.com/nim-custom-devtools-url |
I have the same issue. The solution I found was to downgrade node to 8.12 |
Chrome 71 is scheduled to exit beta and become stable in early December. |
It worked with Chrome 71 but I am now experiencing the same issue with Chrome 72.
There is a difference though: when I am on the
Only (1) is experiencing the issue, not (2). However (as opposed to (1)) (2) is inconvenient as each time the process is restarted, I have to manually click on that link again. I can confirm this is the same issue. Notably it works with Node |
I'm still on Chrome 69. |
Broken for me on Chrome v70, Node.js v10.13.0, win x64. Please let me know if there is any additional information I can provide to aid in debugging. |
currently need chrome canary, not chrome beta |
Worked for me with Chrome Canary - version 73 |
4.19.23-gentoo change chrome to 72.0.3626.121, the 'Open dedicated DevTools for Node' function work fine again. |
Can confirm "Open dedicated DevTools for Node" doesn't work with Chrome 73.0.3683.86, on Arch Linux. The code is not visible in the sources pane, and breakpoints are not triggered. |
Reminder that https://blog.june07.com/nim-custom-devtools-url works as a way to utilize previous DevTools versions with 73.0.3683.86... and other combinations as well. |
I have found a working example. Please follow the steps:
|
This comment has been minimized.
This comment has been minimized.
I too have this problem. Please help. When I quit and restart Chrome it works again, but only once. I don't wanna have to restart Chrome every time I change my code. Chrome Version 73.0.3683.86 (Official Build) (64-bit)
|
I have found another solution. Use Opera's Chrome debugger tool. That tool is compatible with Node v10+. |
Canary Version 75.0.3763.0 (Official Build) canary (64-bit) for MacOS seems to work. |
...and stopping/restarting did fix things. The debugger reopened with the same code visible as before. On opening the page to be debugged, the same breakpoints appeared, and the debugger stopped as expected. |
This got resolved in version 74 (details) that went out few days ago: https://chromereleases.googleblog.com/2019/04/stable-channel-update-for-desktop_30.html |
My original issue is fixed with Chrome 74. I suggest:
|
This problem is not fixed in version 74.0.3729.131. Adding the "debugger" statement works. |
I don't know if this is helpful to anyone, but I finally figured out my problem... symlinks. Depending on the tooling I was using, some tools would resolve symlinks and others wouldn't, making |
…a problem... ...with Google Chrome. It won't recognize the debugger break points. See eg: nodejs/node#23693
This should be fixed now, at least with Chrome 75 |
Ugh this is back in 77. |
I have the issue in 78 |
If someone who has details on their setup where it's not working could open a new issue and link to this one, that would be great. |
The same issue with nodejs 13 and 12.13.1 + Chrome v79 |
|
I have same issue in |
Same issue in Version 78.0.3904.108 (Official Build) (64-bit) |
Same thing on 10.17.0 and 13.7.0 with Chromes 79 and 81 (Chromium) in all 4 combinations. Has anyone come across an explanation of this issue? @HelmZalee 's description of the green disks in Chrome DevTools is the only mention of that indicator that I can find. |
Same issue happend to me.Debug not works, My chrome version is 80.0.3987.100. Can anyone give a solution for my problem. |
83.0.4103.116 has the same issue. debugging does not work. |
I'm seeing it in 85.0.4183.121 |
Working for me... Screenshot today as of Chrome Version 85.0.4183.121 (Official Build) (64-bit) More information... https://blog.june07.com/more-than/ |
So, it's kinda working. Seems like it has something to do with paths to the source files. I end up with two different views on the same source file: the original is a Windows path "file:///D:/Documents...", the second is a Linux path "file:///home/foo/nodejs/...". The breakpoint I set in the original Windows file does nothing; the second file pops up when the inspector stops at the "debugger;" line and, once it comes up, any breakpoints are obeyed. So I can get work done with this set-up. But it's confusing to have two different views of the same document, both of which seem to accept breakpoints, but only one of which is actually active and valid. |
So, is there some way to make breakpoints visible? I'm running Versión 87.0.4280.66 (Build oficial) (32 bits) and only debugger statements are working... |
v10.12.0
Linux my-laptop 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
69.0.3497.100
(V86.9.427.23
)This might be related to #23688 but I believe this might contain more detailed information.
Breakpoints set inside Chrome devtools do not stop code execution anymore since
v10.12.0
. It works withv10.11.0
though.debugger
statements work (only breakpoints set in the Chrome devtools UI do not work).Example file
index.js
:Steps to reproduce:
chrome://inspect/#devices
then click onOpen dedicated DevTools for Node
v10.11.0
:node --inspect-brk index.js
. The code stops at the first line.console.log()
line by clicking on the left marginResume script execution
(F8): the code stops atdebugger
statement.Resume script execution
(F8): the code stops atconsole.log()
statement.Resume script execution
(F8): the code execution ends.v10.12.0
:node --inspect-brk index.js
. The code stops at the first line.console.log()
line by clicking on the left marginResume script execution
(F8): the code stops atdebugger
statement.Resume script execution
(F8): the code does not stop atconsole.log()
statement. Instead the code execution ends.Screencast:
The text was updated successfully, but these errors were encountered: