Visual Studio 16.10.0 - Xamarin Android debugging on physical device not working - setprop "debug.mono.extra" ""

Markus Jessl 21 Reputation points
2021-06-02T09:13:19.49+00:00

Hi,

I haven't recently used debbuging on a physical device for my Xamarin Android app.
Normally I debug against the emulator devices and that works fine.

The app is build for Android 6 to Android 11 and I tried already debugging with multiple physical devices.
I saw some people have "run as" problems due to the new fast debug but that seems to be not my issue.

I have "Use Fast Deployment" enabled but it looks like that the related Xamarin Shared Runtime and Mono Debugger apps are not getting pushed/installed on the physical device (I don't see the related apps installed under the Android apps manager).

I see no errors in the build logs, etc, only the Xamarin Diagnostic shows as follows:

[D:RunShellCommand]:      d8a85669 "run-as" "com.app.android.MyApp" "mkdir" "-p" "files/.__override__"
[D:RunShellCommand]:      d8a85669 "run-as" "com.app.android.MyApp" "files/.__tools__/xamarin.find" "-v" "files/.__override__"
[D:RunShellCommand]:      d8a85669 setprop "debug.mono.extra" ""
-- Start SetProperty - 06/02/2021 16:50:32 (61.9984ms) --
[INPUT] setprop "debug.mono.extra" ""
[OUTPUT]

-- End SetProperty --
[D:RunShellCommand]:      d8a85669 am force-stop com.app.android.MyApp
-- Start ForceStop - 06/02/2021 16:50:32 (102.9999ms) --
[INPUT] am force-stop com.app.android.MyApp
[OUTPUT]

-- End ForceStop --

Can you please kindly guide me in the right way that I be able to also debug on a physical device and not only on the emulator.

Thx a lot.

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.