Issue metadata
Sign in to add a comment
|
DevTools: Support coverage pane when attached to Node.js instance |
||||||||||||||||||||||
Issue descriptionChrome Linux: 64.0.3269.3 (Official Build) dev (64-bit) Node: v10.0.0-nightly20171108d597317a20 The coverage pane does not seem to work when attached to a node instance. To repro: $ node --version v10.0.0-nightly20171108d597317a20 $ node --inspect-brk ~/js/coverage-fib.js Debugger listening on ws://127.0.0.1:9229/cf4ca8be-a27f-40f8-8e10-8d4d7b4ab227 For help see https://nodejs.org/en/docs/inspector Debugger attached. Then open chrome at chrome://inspect and select the remot target. See attached screenshot for the current state. At this point, I'd expect us to be able to use the coverage pane, but neither 'record' nor 'record and reload page' buttons seem to do anything. Ideally, both should work. Nice to have: after running the script to completion, it should be possible to inspect the collected coverage information in the source view, whereas currently the source files vanish from the source view. In Chrome 62, the 'record' button works ('record & reload' doesn't), but node segfaults. Chrome 63 behaves like 64, both buttons are disabled.
,
Jan 23 2018
Note that this means that code coverage simply does not work with Node.js right now.
,
Jan 23 2018
,
Jan 23 2018
For the record, #1 only happens when Chrome is compiled with dcheck_always_on=true. If it's set to false, I can connect to Node.js, but still not record coverage.
,
Jan 23 2018
Since @caseq is OOO, I will fix it.
,
Jan 23 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/8af9bb9a8b8223c62640d0b6d6bfc1569f8ed6be commit 8af9bb9a8b8223c62640d0b6d6bfc1569f8ed6be Author: Alexey Kozyatinskiy <kozyatinskiy@chromium.org> Date: Tue Jan 23 20:53:37 2018 [DevTools] fixed coverage in Node.js frontend We should not check for resource tree model when inspecting Node.js target. R=dgozman@chromium.org Bug: chromium:787754 Change-Id: I04503a249acc05182524da40f83765e6ad7c37a5 Reviewed-on: https://chromium-review.googlesource.com/881468 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#531342} [modify] https://crrev.com/8af9bb9a8b8223c62640d0b6d6bfc1569f8ed6be/third_party/WebKit/Source/devtools/front_end/coverage/CoverageView.js
,
Jan 23 2018
,
Jan 24 2018
Awesome. Thanks!
,
Jan 24 2018
Thanks Alexey! Just checked the latest node nightly with Chrome ToT and coverage appears to work (even block coverage shows up). See also the attached screenshot.
,
Jan 24 2018
Your change meets the bar and is auto-approved for M65. Please go ahead and merge the CL to branch 3325 manually. Please contact milestone owner if you have questions. Owners: cmasso@(Android), cmasso@(iOS), bhthompson@(ChromeOS), govind@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 24 2018
Pls merge your change to M65 branch 3325 ASAP so we can pick it up for tomorrow's dev release. Thank you.
,
Jan 24 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1b1313fdeb260e742dd6b99491fb6c6d33bfec44 commit 1b1313fdeb260e742dd6b99491fb6c6d33bfec44 Author: Alexey Kozyatinskiy <kozyatinskiy@chromium.org> Date: Wed Jan 24 22:59:14 2018 [DevTools] fixed coverage in Node.js frontend We should not check for resource tree model when inspecting Node.js target. R=dgozman@chromium.org TBR=kozyatinskiy@chromium.org (cherry picked from commit 8af9bb9a8b8223c62640d0b6d6bfc1569f8ed6be) Bug: chromium:787754 Change-Id: I04503a249acc05182524da40f83765e6ad7c37a5 Reviewed-on: https://chromium-review.googlesource.com/881468 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#531342} Reviewed-on: https://chromium-review.googlesource.com/884729 Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Cr-Commit-Position: refs/branch-heads/3325@{#74} Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369} [modify] https://crrev.com/1b1313fdeb260e742dd6b99491fb6c6d33bfec44/third_party/WebKit/Source/devtools/front_end/coverage/CoverageView.js |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by yangguo@chromium.org
, Jan 23 2018Labels: -Pri-2 OS-iOS Pri-1