Reputation: 16793
Is there a way to debug a app in release mode in Xamarin? When i start debugging in release mode it just runs the app without starting the debugger.I am asking this question, because app works in debugger mode, but crashes on release mode.
Upvotes: 6
Views: 7853
Reputation: 13176
There's not really a good reason to debug in a Release
configuration per-say. The reason why there are separate configurations is exactly for this reason(One to Debug, One to Release). If anything, you can Enable developer instrumentation (debugging and profiling)
on a Release configuration if you really wanted to do that.
Otherwise you can do the opposite from within a Debug
configuration in the sense that you can change the Linker
and other Configuration settings to mimic the Release
configuration. You can view what those might be within your project's .csproj
.
Typically it's best to just debug crashes on Release
configurations by playing around with the Linker
settings as it's the most common reason something is failing. That with a combination of the platform's specific logs will help you identify exactly what's going on.
Android: https://developer.xamarin.com/guides/android/advanced_topics/linking/
iOS: https://developer.xamarin.com/guides/ios/advanced_topics/linker/
Upvotes: 8