Skip to content

Inspect Protocol - Debug Hover Box don't show up even in the right scope #37838

Closed

Description

  • VSCode Version: Code - Insiders 1.18.0-insider (1544987, 2017-11-02T06:22:24.153Z)
  • OS Version: Linux x64 4.13.11-1-ARCH
  • Extensions:
Extension Author (truncated) Version
quokka-vscode Wal 1.0.76
wallaby-vscode Wal 1.0.64
html-css-class-completion Zig 1.13.0
path-intellisense chr 1.4.2
vscode-eslint dba 1.4.3
vscode-npm-script eg2 0.3.3
prettier-vscode esb 0.24.0
debugger-for-chrome msj 3.5.0
vscode-icons rob 7.17.0
partial-diff ryu 0.4.1
JavaScriptSnippets xab 1.5.0

Steps to Reproduce:

  1. Write es6 code in src directory
  2. babel src --out-dir dist --watch --source-maps
  3. launch debugger
{
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      "program": "${workspaceFolder}/src/index.js",
      "outFiles": [
        "${workspaceFolder}/dist/**/*"
      ],
      "sourceMaps": true,
      "protocol": "inspector",
      "restart": true,
      "skipFiles": [
        "/home/aetherall/Workspace/Omni/playground/3/node_modules/**/*.js", "// doesn't seems to work BTW",
        "<node_internals>/**/*.js"
    ]
    }

Activity

  1. added
    debug
    on Nov 8, 2017
  2. added
    bug
    on Nov 8, 2017
  3. isidorn commented on Nov 9, 2017

    @isidorn

    Forwarindg to roblourens since 90% the scope information coming from the debug adapter is wrong. Most likely a duplicate of some known issue.

    Elies Lou ⚡️ (@Aetherall) could you share your repository so we try to reproduce this on our end?

  4. Aetherall commented on Nov 9, 2017

    @Aetherall
    Author

    I made some tests, and the bug seems to appear in the case of a class method

    I made a special repo to illustrate it

    clone
    install
    run build
    place breakpoint where specified
    debug

    https://github.com/Aetherall/vscode-debug-hover-bug/tree/master

  5. roblourens commented on Nov 10, 2017

    @roblourens
    Member

    Thanks for the simple repro!

    Isidor Nikolic (@isidorn) This is just another case where the sourcemappings make no sense, like #35612, and some others.

    I don't think this problem will ever go away, because the sourcemaps are broken in a way that is hard to notice if you are just stepping with chrome devtools. They are correct on code lines, but wrong around the ends of functions and function declarations, e.g. scope boundaries, which wouldn't affect stepping. I can file a bug on Babel, but it will either not get fixed or break again, because few users will notice.

    The babel config here is very basic, so this is easy to repro. I propose that we show hovers anywhere, not just in the current scope, or make it configurable. But, I think the scope locations should still be respected for inline debug values.

  6. isidorn commented on Nov 10, 2017

    @isidorn

    I propose that we show hovers anywhere, not just in the current scope, or make it configurable. But, I think the scope locations should still be respected for inline debug values.

    Making this configurable sounds very strange, as it is quite technicaly involved. How would a user be supposed to know what to do, or even that such a configuraiton exists.

    I am all up for disabling using the scope since it seems to create more harm than good.
    Sure, we can use it for inline debug values since it would be rather noisy otherwise.

    Let me know what you think roblourens Andre Weinand (@weinand)

  7. changed the title [-][ Bug ] Inspect Protocol - Debug Hover Box don't show up even in the right scope[/-] [+]Inspect Protocol - Debug Hover Box don't show up even in the right scope[/+] on Nov 17, 2017
  8. added
    verified
    on Dec 6, 2017
  9. locked and limited conversation to collaborators on Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions