Skip to content

VS Code launch.json uses undocumented Swift extension fields #132

@leogdion

Description

@leogdion

Severity: 🟡 Minor
File: .vscode/launch.json:11
PR: #126

Issue

The launch configuration uses undocumented Swift VS Code extension fields "target" and "configuration" that are not listed in the Swift extension's supported launch configuration fields.

Standard supported options include:

  • program
  • args
  • cwd
  • preLaunchTask
  • LLDB-DAP fields like stopOnEntry and terminal

Current Code

{
  "name": "Debug bushel",
  "preLaunchTask": "swift: Build Debug bushel",
  "target": "bushel",
  "configuration": "debug"
}

Recommendation

Remove the custom fields "target" and "configuration" and replace them with standard LLDB/Swift launch fields:

  • Keep "preLaunchTask": "swift: Build Debug bushel"
  • Add a "program" entry pointing to the built bushel executable
  • Optionally set "cwd", "args", and LLDB options such as "stopOnEntry" and "terminal"

CodeRabbit Suggestion

In @.vscode/launch.json around lines 9-11, The launch config uses undocumented
Swift fields "target" and "configuration"; remove those keys and replace them
with standard LLDB/Swift launch fields: keep "preLaunchTask": "swift: Build
Debug bushel", add a "program" entry pointing to the built bushel executable,
and optionally set "cwd", "args", and LLDB options such as "stopOnEntry" and
"terminal" so the debugger recognizes the config; ensure you remove "target" and
"configuration" from the object and use
"program"/"args"/"cwd"/"stopOnEntry"/"terminal" instead.

Source: CodeRabbit AI review of PR #126

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions