Skip to content

rustdoc is not built with debuginfo, even if debuginfo=true #44810

Closed
@QuietMisdreavus

Description

@QuietMisdreavus

While investigating #44613, i found that even though i set debuginfo = true in my config.toml, the symbols that came out would not include any source information for librustdoc. Backtraces for panics didn't have useful method names unless i turned off optimizations. Attempts to debug rustdoc in Visual Studio would just have a blind spot for any source information within librustdoc itself. Profiles would show mangled names for any librustdoc methods.

EDIT: I should note, a rustdoc-tool-binary-(hash).pdb was created, and Visual Studio dutifully found it and loaded it, but it still had all the problems noted above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions