Debugging maui app using WSA - VS Debugger terminates as soon as MAUI app is lauched
I installed Windows SubSystem for Android and tried creating a "File -> New" MAUI app using blazor. When I press F5 to debug, the app launches and debugger crashes straight away. Here is the log from output window:
Forwarding debugger port 8851
Detecting existing process
am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.mauiapp1/crc64e632a077a20c694c.MainActivity"
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.mauiapp1/crc64e632a077a20c694c.MainActivity }
[nyname.mauiapp] Late-enabling -Xcheck:jni
[nyname.mauiapp] Unexpected CPU variant for X86 using defaults: x86_64
[CompatibilityChangeReporter] Compat change id reported: 171979766; UID 10058; state: ENABLED
[GraphicsEnvironment] ANGLE Developer option for 'com.companyname.mauiapp1' set to: 'default'
[GraphicsEnvironment] ANGLE GameManagerService for com.companyname.mauiapp1: false
[GraphicsEnvironment] Neither updatable production driver nor prerelease driver is supported.
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[debug-app-helper] Checking if libmonodroid was unpacked to /data/app/~~jrMdmu-kt_b0gXS9HkG_Pw==/com.companyname.mauiapp1-_w0fecLnSD-kG3212-M3zA==/lib/x86_64/libmonodroid.so
[debug-app-helper] Native libs extracted to /data/app/~~jrMdmu-kt_b0gXS9HkG_Pw==/com.companyname.mauiapp1-_w0fecLnSD-kG3212-M3zA==/lib/x86_64, assuming application/android:extractNativeLibs == true
[debug-app-helper] Setting up for DSO lookup in app data directories
[debug-app-helper] Added filesystem DSO lookup location: /data/app/~~jrMdmu-kt_b0gXS9HkG_Pw==/com.companyname.mauiapp1-_w0fecLnSD-kG3212-M3zA==/lib/x86_64
[debug-app-helper] Using runtime path: /data/app/~~jrMdmu-kt_b0gXS9HkG_Pw==/com.companyname.mauiapp1-_w0fecLnSD-kG3212-M3zA==/lib/x86_64
[debug-app-helper] checking directory: /data/user/0/com.companyname.mauiapp1/files/.__override__/lib
[debug-app-helper] directory does not exist: /data/user/0/com.companyname.mauiapp1/files/.__override__/lib
[debug-app-helper] Checking whether Mono runtime exists at: /data/user/0/com.companyname.mauiapp1/files/.override/libmonosgen-2.0.so
[debug-app-helper] Checking whether Mono runtime exists at: /data/app/~~jrMdmu-kt_b0gXS9HkG_Pw==/com.companyname.mauiapp1-_w0fecLnSD-kG3212-M3zA==/lib/x86_64/libmonosgen-2.0.so
[debug-app-helper] Mono runtime found at: /data/app/~~jrMdmu-kt_b0gXS9HkG_Pw==/com.companyname.mauiapp1-_w0fecLnSD-kG3212-M3zA==/lib/x86_64/libmonosgen-2.0.so
[nyname.mauiapp] Attempt to remove non-JNI local reference, dumping thread
[DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
[monodroid] Creating public update directory: /data/user/0/com.companyname.mauiapp1/files/.__override__
[nyname.mauiapp] Attempt to remove non-JNI local reference, dumping thread
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8851,server=y,embedding=1
[mono] debugger-agent: Unable to listen on 55
Not sure why port 55 would be the issue and why such a low port would be used. Any insights from anyone? Thanks,