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

Bug: "Sources" panel is empty in inspector #24877

Closed
marvinhagemeister opened this issue Aug 5, 2024 · 5 comments
Closed

Bug: "Sources" panel is empty in inspector #24877

marvinhagemeister opened this issue Aug 5, 2024 · 5 comments
Labels
bug Something isn't working correctly debugger Chrome DevTools inspector/debugger integration upstream Changes in upstream are required to solve these issues

Comments

@marvinhagemeister
Copy link
Contributor

The "Sources" panel in the Chrome DevTools inspector is empty. This makes it impossible to continue when running with --inspect-brk. Tried to do a bisect but it seems like all Deno versions are affected. Maybe Chrome changed something on there side?

Screenshot 2024-08-05 at 08 23 51

Steps to reproduce

  1. Run deno init
  2. Run deno run -A --inspect-brk main.ts
  3. In Chrome, go to chrome://inspect
  4. Click on "Inspect" link

Version: Deno 1.45.5

@marvinhagemeister marvinhagemeister added the bug Something isn't working correctly label Aug 5, 2024
@marvinhagemeister
Copy link
Contributor Author

Can confirm that this is an upstream issue in DevTools, see https://issues.chromium.org/issues/342961829?pli=1

@marvinhagemeister marvinhagemeister added upstream Changes in upstream are required to solve these issues debugger Chrome DevTools inspector/debugger integration labels Aug 5, 2024
@bartlomieju
Copy link
Member

@devsnek mentions that it might be because we set "opaque" origins for all scripts. Gus has a branch that is supposed to fix it.

@devsnek
Copy link
Member

devsnek commented Aug 8, 2024

The upstream bug has been marked fixed and I verified that I can use --inspect-brk with a chromium 129 nightly build, so I think you just need to wait for that fix to be available in your chrome install.

@june07
Copy link
Contributor

june07 commented Aug 9, 2024

Another PSA about a solid workaround for this and other instances where DevTools on the current browser release is broken in some way...

Use Node --inspector Manager the Chromium browser extension (I am the author)

I just resolved a different DevTools issue just a few days ago (see here).

NiM allows you to mix/match DevTools versions with whatever browser version you happen to be running, so when bugs become showstoppers, it's just a matter of selecting a different DevTools version from NiM's settings which can be hosted locally as shown in the example below or from any other endpoint:

Quick change in the settings to swap DevTools vs needing to install Canary or wait:
image

Showing me debugging Deno as per @marvinhagemeister steps
Group

@marvinhagemeister
Copy link
Contributor Author

With the recent Chrome 128.0.6613.114 update I cannot reproduce this issue anymore. Looks like they backported the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly debugger Chrome DevTools inspector/debugger integration upstream Changes in upstream are required to solve these issues
Projects
None yet
Development

No branches or pull requests

4 participants