Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to debug Android #27305

Closed
nk-alex opened this issue Jan 23, 2025 · 2 comments
Closed

Unable to debug Android #27305

nk-alex opened this issue Jan 23, 2025 · 2 comments
Labels
platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working

Comments

@nk-alex
Copy link

nk-alex commented Jan 23, 2025

Description

I'm not able to debug my Android application. When I try to debug using a real device, the application gets installed, but right after splash screen, gets minimized and VS Output remains stuck on:

Forwarding debugger port 8812
Detecting existing process
> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "io.myapp.com/crc6452d2c7dfdf781294.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=io.myapp.com/crc6452d2c7dfdf781294.MainActivity }

When I try to stop the debugging process, an error popup shows up telling me:

The debugger was unable to terminate one or more processes: [N/A] Mono: The debugger is still attaching to the process or the process is not currently executing the type of code selected for debugging. The debugger may be unstable now. It is recommended that you save all files and exit.

After closing this popup, VS just freezes.

If I try to debug using an emulator, VS loads an outdated version of the application.

The only way I can make my application work on my real device is by using Release mode.

[Edit] - Just installed a new emulator. This one is telling me on Output:

[libc] Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 4502 (io.myapp.com), pid 4502 (io.myapp.com)

Steps to Reproduce

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

No response

Relevant log output

@nk-alex nk-alex added the t/bug Something isn't working label Jan 23, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@nk-alex
Copy link
Author

nk-alex commented Jan 23, 2025

This is my fault. Somehow on android options I had bundle insteak apk on Debug mode.

@nk-alex nk-alex closed this as completed Jan 23, 2025
@samhouts samhouts added platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants