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

node 16.3.0 + async + destructor params = fail (jumpy) breakpoint #125740

Closed
icetbr opened this issue Jun 8, 2021 · 4 comments
Closed

node 16.3.0 + async + destructor params = fail (jumpy) breakpoint #125740

icetbr opened this issue Jun 8, 2021 · 4 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@icetbr
Copy link

icetbr commented Jun 8, 2021

Issue Type: Bug

Add breakpoint where instructed, it won't work. Tested on 1.54, 1.55, 1.56, 1.57.

WORKS WITH

  • removing the desctructured param
  • node 15.14.0 or less
  • no async/await
const x = {
    async a({ b }) {
        console.log(b) // BREAKPOINT HERE FAILS
        return b;
    }
}

void async function main() {
    await x.a({ b: 1 })
}()

Use nvm and change runtimes to test

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Program",
            "program": "${workspaceFolder}/a.js",
            "request": "launch",
            "type": "node",
            "runtimeExecutable": "/home/user/.nvm/versions/node/v16.3.0/bin/node"
        }
    ]
}

VS Code version: Code - Insiders 1.57.0-insider (bf84ee6, 2021-06-07T12:39:04.297Z)
OS version: Linux x64 5.4.0-74-generic
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 4024)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 1, 2, 2
Memory (System) 15.51GB (3.49GB free)
Process Argv --crash-reporter-id e07d7919-ae8c-4fef-8816-038dc0b9b9ed
Screen Reader no
VM 0%
DESKTOP_SESSION Lubuntu
XDG_CURRENT_DESKTOP LXDE
XDG_SESSION_DESKTOP Lubuntu
XDG_SESSION_TYPE x11
Extensions: none
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256198
pythonvspyt639:30291487
pythontb:30258533
vspre833cf:30267465
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscus158cf:30286554
pythonvsuse255:30303025
vscgsv2:30305091
vscorehov:30301224
3f5j7703:30294757
vscod805cf:30301675
vscextlang:30310088
vsccppwtct:30312693

@weinand weinand assigned connor4312 and unassigned weinand Jun 8, 2021
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jun 8, 2021
@connor4312
Copy link
Member

Thanks for the issue, please see microsoft/vscode-js-debug#1017 (comment)

/duplicate

@icetbr
Copy link
Author

icetbr commented Jun 8, 2021

Thank you. As a side note, is it clear / can it be made more clear when opening a new bug which are the major vscode projects? I suspected debug is a separate project, but I wasn't sure, and I let the Report Issue take the wheel.

@connor4312
Copy link
Member

Opening an issue on the main vscode repo never hurts, it'll get to the right place

@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants
@icetbr @weinand @connor4312 and others