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

Run Without Debug never terminates if uncaught exceptions breakpoint is enabled #119340

Closed
dinofx opened this issue Mar 19, 2021 · 1 comment
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@dinofx
Copy link

dinofx commented Mar 19, 2021

When using CTRL+F5 to launch a node app without debugging it, the launched app never exits if either caught or uncaught exceptions breakpoint is enabled.

  • VS Code Version:
    Version: 1.54.3
    Commit: 2b9aebd
    Date: 2021-03-15T11:57:12.728Z (4 days ago)
    Electron: 11.3.0
    Chrome: 87.0.4280.141
    Node.js: 12.18.3
    V8: 8.7.220.31-electron.0
    OS: Darwin x64 19.6.0

Steps to Reproduce:

  1. In a new workspace, create a simple hello.js file that logs hello to the console
  2. Create a launch config for it:
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-node",
      "request": "launch",
      "name": "Launch Program",
      "console": "integratedTerminal",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "program": "${workspaceFolder}/hello.js"
    }
  ]
}
  1. CTRL+F5 to launch it, notice it exits normally:
Debugger attached.
hello
Waiting for the debugger to disconnect...
  1. Now check the "Uncaught Exceptions" in the breakpoints view and try again.

The terminal shows only:

Debugger attached.

and the program never runs. Stop button on the debug toolbar kills it, but VSCode thinks the launch is still active and the toolbar never goes away.

Does this issue occur when all extensions are disabled?: Yes/No

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Mar 20, 2021
@weinand weinand removed their assignment Mar 20, 2021
@microsoft microsoft deleted a comment Mar 20, 2021
@connor4312 connor4312 removed the info-needed Issue requires more information from poster label Mar 20, 2021
@connor4312 connor4312 added this to the April 2021 milestone Mar 20, 2021
@connor4312 connor4312 added the bug Issue identified by VS Code Team member as probable bug label Mar 20, 2021
@connor4312
Copy link
Member

connor4312 commented Mar 31, 2021

Thanks for the issue, good find. Will be in the next nightly

@alexr00 alexr00 added the verified Verification succeeded label Apr 29, 2021
@github-actions github-actions bot locked and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants
@weinand @connor4312 @dinofx @alexr00 and others