Skip to content

Manifest files break VSCode debugger #1249

@daymxn

Description

@daymxn

Describe the bug
When a manifest (oclif.manifest.json) file is present, breakpoints don't get tripped via VSCode's debugger.

To Reproduce

  1. Generate a manifest file with oclif manifest
  2. Set up a breakpoint somewhere in your source code
  3. Create a launch configuration for attaching
{
  "type": "node",
  "request": "launch",
  "name": "Execute Command",
  "skipFiles": ["<node_internals>/**"],
  "runtimeExecutable": "node",
  "runtimeArgs": ["--loader", "ts-node/esm", "--no-warnings=ExperimentalWarning"],
  "program": "${workspaceFolder}/bin/dev.js",
  "args": ["hello:world"]
}
  1. Run your launch configuration in VSCode

Expected behavior
Breakpoints should trip, even when a manifest file is present.

Environment (please complete the following information):

  • OS & version: Windows 10
  • Shell/terminal & version: Windows Terminal w/ powershell

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions