Skip to content

Embedded PDBs not readable by VisualStudio #856

Closed

Description

@tom-englert

With the latest changes 79b43e8 in PortablePdb.cs assemblies modified with cecil can no longer be debugged in VisualStudio when embedded pdbs are used.

See Fody/Fody#1110 for details how to reproduce.

Activity

  1. ltrzesniewski commented on Jun 14, 2022

    @ltrzesniewski
    Contributor

    Here's a minimal repro which uses Fody, if it helps: TestProject.zip

  2. jbevain commented on Jun 15, 2022

    @jbevain
    Owner

    :(

    Thanks for the heads-up!

  3. tom-englert commented on Jun 15, 2022

    @tom-englert
    Author

    I've created some test project without Fody, so this can be instantly checked within the cecil solution:
    https://github.com/tom-englert/cecil/tree/%23856
    image

    devenv_5EXsg5IJEt
    Just put a breakpoint on the unit test in the Testtee project and try to debug the test => Breakpoint never hits!

    I've also reverted the changes to the PdbWriter to verify that this is the root cause:
    https://github.com/tom-englert/cecil/tree/%23856_Fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions