Skip to content

Background indexing generates confusion when debugging in VSCode #2160

Open
@adam-fowler

Description

@adam-fowler

Swift version

Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)

Platform

macOS 15.4.1 (24E263)

Editor

Visual Studio Code

Description

Because background indexing jumps to code in a separate folder (ie .build/index-build) from the code actually being used to build your package. If you set a break point in that code it is never hit.

Steps to Reproduce

  • Load project with dependencies
  • Right click on function that is defined in one your dependencies and select Go to definition.
  • Add break point in that function
  • Run in debugger
  • Break point is never hit

Logging

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions