Skip to content

macOS: Debugger doesn't work for VSCode #278

Open
@zaneenders

Description

@zaneenders

Problem

Image

After installing Swiftly 1.0 and switching VSCode to using that toolchain under settings.

// settings.json file
"swift.path": "/Users/zane/.swiftly/bin",

The debugger throws the above error. The following code with a breakpoint on #expect(true) triggers the error.

import Testing
@testable import Example

@Test func example() async throws {
    #expect(true)
    // Write your test here and use APIs like `#expect(...)` to check expected conditions.
}

Console.app has the following errors.

Image

Could be related to swiftlang/swift-package-manager#7994

Using XCode's toolchain debugging works correctly.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift

Thanks,
Zane

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions