Are you supposed to be able to debug with MtouchLink/AOT/Trimming? #26113
Unanswered
martinwhitman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I get hard-to-track-down problems when building in release mode with MTouchLink set to SdkOnly on iOS, and AOT/PublishTrimming on Android. Not like "the whole app is broken" errors, but lots of little things like things being null during OnStart in App.Xaml.cs for example. I've tried using a custom linker, but none of the attempts at preservation work, so either my custom linker.xml is being ignored, or I'm identifying the wrong assemblies. So to get to my question, are you supposed to be able to debug with MTouchLink set to SdkOnly or Full on iOS, and AOT/PublishTrimming enabled on Android? Because despite building without errors, and deploying, it doesn't seem to attach the debugger, so I get no breakpoints hitting and no console output. I don't understand why so many things are so profoundly different from Debug to Release configurations, so maybe I'm being insensitive to design considerations or something, but it would be really nice to have some insight in to the many differences that pop up between Debug and Release.
Beta Was this translation helpful? Give feedback.
All reactions