question

RossBender avatar image
0 Votes"
RossBender asked RobCaplan edited

Xamarin Android application: why is shared runtime needed for debugging?

I'm running Visual Studio Mac for my Xamarin Android application and noticed debugging does not work unless "Use Shared Mono Runtime" is enabled under Android Build > Packaging and Deployment.

If I disable this option, breakpoints are not hit when debugging the application.

How come using the shared runtime is necessary for breakpoint debugging? It seems like the other debugging options should allow this feature to work without the shared runtime.

70394-screen-shot-2021-02-21-at-122640-pm.png


dotnet-xamarinvs-debugging
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RossBender ,I couldn't reproduce this problem in my Visual Studio Mac. Could you please share your detailed steps and screenshots with me? And what's the version of your visual studio?

0 Votes 0 ·

I don't have that as an option and am struggling to load an image!

I'll try and draw it out below but I have:

Packaging properties ---------------------------------------------------------------

[] Use Fast Deployment (debug mode only)
[] Generate one package (.apk) per selected ABI
[] User incremental Android packaging system (aapt2)
[] Enable Multi-Dex



My first option of "Use fast deployment (debug mode only) seems to have replaced the first two options I see everyone else has...is that right or wrong?
I have it unchecked but still can't archive an android apk as the error states that mono runtime is still checked

0 Votes 0 ·

0 Answers