microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.32k stars 28.58k forks source link

VS Code debug launch json is not working #118806

Closed Vineeth4420 closed 3 years ago

Vineeth4420 commented 3 years ago

Issue Type: Bug

Hey I am trying to use express app in my project. I was able to debug all this while but after the recent update that is 1.54.2. I am not able to debug the application can someone resolve this soon.

VS Code version: Code 1.54.2 (fd6f3bce6709b121a895d042d343d71f317d74e7, 2021-03-11T00:56:19.848Z) OS version: Windows_NT x64 10.0.18362

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.66GB (2.96GB free)| |Process Argv|--crash-reporter-id c010e8b0-324a-416a-81a4-cd887df81b21| |Screen Reader|no| |VM|0%|
Extensions (36) Extension|Author (truncated)|Version ---|---|--- atlascode|atl|2.8.5 salesforce-diff|chu|0.0.7 vscode-eslint|dba|2.1.17 gitlens|eam|11.3.0 prettier-vscode|esb|5.9.2 vscode-mocha-test-adapter|hbe|2.10.2 vscode-test-explorer|hbe|2.19.5 vscode-edit-csv|jan|0.5.5 vue|jcb|0.1.5 git-graph|mhu|1.29.0 compare-folders|mos|0.20.2 python|ms-|2021.2.636928669 jupyter|ms-|2021.3.619093157 remote-wsl|ms-|0.54.3 debugger-for-chrome|msj|4.12.12 vetur|oct|0.33.1 bitbucket-pull-requests|Ram|0.3.10 vscode-data-preview|Ran|2.3.0 java|red|0.76.0 vscode-yaml|red|0.16.0 LiveServer|rit|5.6.1 salesforce-vscode-slds|sal|1.4.1 salesforcedx-vscode|sal|51.4.0 salesforcedx-vscode-apex|sal|51.4.0 salesforcedx-vscode-apex-debugger|sal|51.4.0 salesforcedx-vscode-apex-replay-debugger|sal|51.4.0 salesforcedx-vscode-core|sal|51.4.0 salesforcedx-vscode-lightning|sal|51.4.0 salesforcedx-vscode-lwc|sal|51.4.0 salesforcedx-vscode-visualforce|sal|51.4.0 vscodeintellicode|Vis|1.2.11 vscode-java-debug|vsc|0.31.0 vscode-java-dependency|vsc|0.18.1 vscode-java-pack|vsc|0.13.0 vscode-java-test|vsc|0.28.1 vscode-maven|vsc|0.28.0
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 pythonvspyt678:30270856 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvsdeb440:30248342 pythonvsded773:30248341 pythonvspyt875:30259475 dockersubset:30270708 pythontbcf:30265426 vspre833:30267464 ```
Vineeth4420 commented 3 years ago

"resolveSourceMapLocations": [ "${workspaceFolder}/", "!/node_modules/" ] Adding this in launch json file and changing type: pwa-node** solves it

Oliverq755 commented 3 years ago

@vscode-triage-bot @msftgits @Vineeth4420

I am facing the same issue while debuging the express app. The sample of Launch.json is attached here. Looking for immediate fix for this issue since its a blocker for debuggers.

Launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "program": "${workspaceFolder}/${internal_link}/app.js"
        }
    ]
}

System Details: Windows 10 Pro Processor: Intel(R) Core(TM) i5-6440HQ CPU System Type: 64-bit OS, X64-based processor

VS Code version: Code 1.54.2 Node Version: 14.15.4

connor4312 commented 3 years ago

Please describe what the issue is you're facing (what does "not able to debug" mean?) and collect a log file

/jsDebugLogs