Git Product home page Git Product logo

Comments (15)

tom-englert avatar tom-englert commented on June 2, 2024

#1102 seems to be the only relevant change in this release, so this might be related to Cecil.

from fody.

tom-englert avatar tom-englert commented on June 2, 2024

@ltrzesniewski @SimonCropp Can anyone reproduce this? I got this in several projects.

Seems like these are the only changes related to .pdb:
jbevain/cecil@79b43e8
jbevain/cecil@8b593d5
@vitek-karas any idea why this is now broken?

from fody.

tom-englert avatar tom-englert commented on June 2, 2024

After changing DebugType to portable it works again. @vitek-karas @jbevain maybe the latest changes regarding pdb writing are not applicable when using embedded pdbs?

from fody.

SimonCropp avatar SimonCropp commented on June 2, 2024

@tom-englert i hvant noticed. do u want me to revert for now and re-deploy?

from fody.

ltrzesniewski avatar ltrzesniewski commented on June 2, 2024

The issue doesn't reproduce under Rider 2022.2 EAP 4 (after updating Fody to v6.6.2 in your project).

I can repro this is VS though.

from fody.

tom-englert avatar tom-englert commented on June 2, 2024

In the unit tests we use System.Reflection.PortableExecutable.PEReader, that seems to have also no problem.

from fody.

tom-englert avatar tom-englert commented on June 2, 2024

Should we revert then? And is this a bug of VS or Cecil?

from fody.

tom-englert avatar tom-englert commented on June 2, 2024

6.6.3 deployed

from fody.

vitek-karas avatar vitek-karas commented on June 2, 2024

Sorry for the late reply on this. I'm busy with other things, so didn't have a chance to spend too much time on this. I can repro it with the project provided by @tom-englert (thanks!). But it seems that it's not a wide-spread problem. For example the dotnet/linker uses Cecil to read->write assemblies as well and using an embedded PDB I could not repro the problem there.
So it's either something special about some code pattern, or it's something special about Fody's usage of Cecil.

from fody.

tom-englert avatar tom-englert commented on June 2, 2024

@vitek-karas it's not specific to Fody:

jbevain/cecil#856

from fody.

mohibsheth avatar mohibsheth commented on June 2, 2024

I'm using Fody 6.6.4 and debug is still broken for me. Removing Fody package allows the app to be debugged again.

Quote from the link below

So our target _CollectPdbFiles is not finding the myMowasat.Android.pdb in the bin/Debug/ directory. This is why it is not being deployed.
Looking a the log in more detail and it seems that Fody.targets is reassigning the DebugType property from portable to embedded.
https://github.com/Fody/Fody/blob/master/FodyHelpers/build/FodyHelpers.props#L4
I'm not sure why its doing that but it might stop our debugger from working. I'm not sure the mono soft debugger works with embedded symbols afaik.
Are you using Fody for anything? If not it might be worth removing the package reference if you are not really using it.

https://developercommunity.visualstudio.com/t/Unable-to-debug-Android-app/10220577#T-ND10226714

from fody.

tom-englert avatar tom-englert commented on June 2, 2024

@mohibsheth with which version did it stop?

from fody.

mohibsheth avatar mohibsheth commented on June 2, 2024

Not sure but in our project, previously it was 4.0.2 and I recently upgraded it directly to 6.6.4

Removing FodyHelpers NuGet fixes my debug issue.

from fody.

ltrzesniewski avatar ltrzesniewski commented on June 2, 2024

Removing FodyHelpers NuGet fixes my debug issue.

You are not supposed to reference the FodyHelpers package, unless you are developing a Fody weaver. If you want to use Fody, you should reference the Fody package + the weavers you need.

from fody.

mohibsheth avatar mohibsheth commented on June 2, 2024

Ah ok, thanks for the clarification. As I mentioned above, the project is quite old and I was upgrading everything to the latest. I guess in older versions FodyHelpers nuget was also required but now it's not.

Thanks.

from fody.

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.