How to attach debugger to a released xamarin android app? - visual-studio

My xamarin released android app works on debug mode but crashes on release mode on Navigation pushasync event. I want to be able to view the log to know what made the app crash in release mode. How can I attach a debugger to the android process through android studio or visual studio?

Related

Xamarin app doesn't debug on Android device

I am developing Xamarin App on Visual Studio, and I want to debug the app on Android device, when deploying on debug mode on Visual Studio, the app gets installed but when trying to open this error shows up on Visual Studio.
Couldn't connect to with logcat, GetProcessId returned: 0
Couldn't connect to the debugger. You can see more details in Xamarin diagnostic output
The app does work when deploying on release.

Can I open a Xamarin project developed in MAC on Xamarin Studio in Windows?

I have a Xamarin project developed in iOS MAC. I want to continue the development of the same project on Xamarin Studio but on Windows. Is this possible?
Yes you can, keep in mind that when you're downloading Xamarin at windows it always force you to download a visual studio with Xamarin being a plugin (now they're introducing visual studio for Mac too!). if you're insisting to use Xamarin studio on windows go on to your account on Xamarin rather than using the default download button, and see all the version that can be downloaded. Xamarin studio for windows should still be there
You can open an Android project in Xamarin Studio on OSX or Windows. An iOS app will not open in Xamarin Studio on Windows; it has to be opened in Visual Studio. On Windows, Visual Studio should be used over Xamarin Studio.

Why does Visual Studio 2017 open Windows "For developers" settings on startup?

Every time I start VS 2017 (Enterprise) on Windows 10, it opens the Settings > Update & security > For developers screen. Why does it do this, and how can I prevent it?
Installed workloads:
.NET desktop
UWP
.NET mobile (Xamarin)
I don't recall changing anything else during installation.
I had the exact same problem when opening a Xamarin project.
(Maybe it's related to the configuration request of the Xamarin Mac Agent)
I've found that enabling the developer mode on the settings stop the
panel to popup everytime.
It shows up because of the UWP workload (along with a notification in Visual Studio that you need a developer license to develop UWP apps):
https://learn.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development
However, if you are writing software with Visual Studio on a computer for first time, you will need to enable Developer Mode on both the development PC, and on any devices you'll use to test your code. Opening a UWP project when Developer Mode is not enabled will either open the For developers settings page, or cause this dialog to appear in Visual Studio:
Developer mode lets you sideload apps, and also run apps from Visual Studio in debug mode.
Either switching to developer mode or modifying your Visual Studio installation to not include UWP will stop it from happening.

Debug mode not working on Visual studio mac preview

I'm having a problem where i can't debug my Xamarin application onto my android device. The app is installed on my phone but when i start the application it immediately crashes.
please help me!

How to debug a xamarin app in Emulator

I am new to Xamarin. I develop an app and deployed it on VS Emulator for android but on clicking of a button, the app is getting crashed. Please let me know the step which I can take to attach my app to VS so That I can figure out the cause of crashing the app
Please see this Xamarin documentation to undestand how you can debug your xamarin app in Emulator.
There are two standard Emulators that you can use, one is Android SDK Emulator which is the default emulator that is provided with the Andorid SDK and the other one is Visual Studio Android Emulator which is a Visual Studio 2015 built in Android emulator. Alternatively, you can use Gorilla Player.

Resources