Skip to content

lldb can not print Option<i32> #79530

@jrmuizel

Description

@jrmuizel

I tried this code:

{
    let x = Some(4);
    println!("Hello, world! {:?}", x);
}

Trying to print the value of x gives:

(core::option::Option<i32>) $0 = {}

This is with:

lldb-1200.0.41
Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)

and

rustc 1.49.0-nightly (adef9da30 2020-10-13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.O-macosOperating system: macOST-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions