node inspect shows wrong version of source code after saving server source
Reported by
quux...@gmail.com,
Jun 5 2018
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36 Steps to reproduce the problem: 1. run a node server with `node --inspect foo-server.js` 2. open node dev console, click "+ add folder to workspace", and add the folder containing foo-server.js 3. set a breakpoint in foo-server.js then hit it twice by making two requests 4. edit foo-server.js and save, and observe it being updated in console 5. continue from the first breakpoint. Now the second breakpoint will be triggered. At this second breakpoint, the node thread is executing the first version of foo-server.js but the developer console shows you're debugging the second version. What is the expected behavior? 1. In step 4, the console _should not_ update the code immediately on saving. It should only show the newer version if the thread being debugged is running the newer version. 2. Whenever a breakpoint is triggered, the correct version for that file should be loaded and displayed What went wrong? The dev console is getting extremely confused on what version of the file the node process is executing when a breakpoint is triggered. Did this work before? No Chrome version: 66.0.3359.139 Channel: n/a OS Version: OS X 10.13.4 Flash Version: This is clearly extremely confusing and broken behavior for a debugger. Yes, this is a complex problem. But given how inaccurate the debugger is during normal / easily achieved debugging flow of a server, auto code refresh should probably be disabled for remote node debugging until this is fixed.
,
Jun 7 2018
Thanks for filing the issue! @Reporter: Could you please share a sample test file/URL for ease of reproducing this.
,
Jun 7 2018
It can be reproduced with any node server, like a hello world server. It doesn't matter.
,
Jun 7 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 11 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by krajshree@chromium.org
, Jun 6 2018