Skip to content

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

@dinofx

Description

@dinofx

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions