Quantcast
Channel: LLDB - Swift Forums
Viewing all articles
Browse latest Browse all 40

LLDB prints wrong UUID value

$
0
0

LLDB prints the wrong UUID value when unwrapping it as an associated value within a switch‑case statement.

let's consider following example:

enum MyEnum {
    case firstCase(UUID)
}

let myEnum = MyEnum.firstCase(UUID(uuidString: "00000000-0000-0000-0000-000000000000")!)

switch myEnum {
case .firstCase(let uuid):
    print(uuid)
}

When I step into the print statement and type po/p/v in LLDB, it prints out C0F1DF6F-0100-0000-E0F4-DF6F01000000, even though a null UUID was provided. However, when I compile using the release build configuration, the problem disappears.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 40

Trending Articles