Coder Social home page Coder Social logo

PDB fails to load about mradvice HOT 7 CLOSED

rgroenewoudt avatar rgroenewoudt commented on September 25, 2024
PDB fails to load

from mradvice.

Comments (7)

rgroenewoudt avatar rgroenewoudt commented on September 25, 2024 1

Well, good news. I just spent 10 minutes updating dnlib to latest nuget (previous version was from 2020) in the Stitcherboy project and put the binaries in MrAdvice locally and debugging now works 👍

I can make a PR for you in https://github.com/picrap/StitcherBoy.

from mradvice.

rgroenewoudt avatar rgroenewoudt commented on September 25, 2024 1

Confirmed, the problem is fixed

from mradvice.

picrap avatar picrap commented on September 25, 2024

Hi,

as far as I remember, this is related to PDB format. You can change it in build properties. Another PDB format may work.
Sorry for blurry answer.
Let me know!

from mradvice.

rgroenewoudt avatar rgroenewoudt commented on September 25, 2024

Well, the results are interesting. I've tried the DebugType options

  • default/portable: Fails for the specific project
  • embedded: Also fails for the specific project. Other projects load fine and indicate embedded in VS.
  • full: Works :)

My guess is that MrAdvice corrupts the new portable pdb in a rare case.
If I try the tool sourcelink with command sourcelink print-urls pdb-file, it works for other projects but fails with error "Read out of bounds." for the specific project. I'm cannot find any other tools to validate the portable-pdb-format.

from mradvice.

picrap avatar picrap commented on September 25, 2024

MrAdvice is based on dnlib (https://github.com/0xd4d/dnlib) wich does the dirty work with PDB, so unfortunately this is not something I am comfortable with.
If one day there is something similar directly in dotnet, it may be worth trying to port it.

from mradvice.

picrap avatar picrap commented on September 25, 2024

That would be great! I’ll update MrAdvice after this. Thank you.

from mradvice.

picrap avatar picrap commented on September 25, 2024

MrAdvice 2.15 is out! Let me know.

from mradvice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.