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

[Question] A way to connect Mono Debugger for the Release builds #8938

Open
JaneySprings opened this issue May 11, 2024 · 0 comments
Open

[Question] A way to connect Mono Debugger for the Release builds #8938

JaneySprings opened this issue May 11, 2024 · 0 comments
Assignees
Labels
Area: App Runtime Issues in `libmonodroid.so`. needs-triage Issues that need to be assigned.

Comments

@JaneySprings
Copy link

Android application type

.NET Android (net7.0-android, net8.0-android, etc.)

Affected platform version

.NET 8+

Description

Hi! I'm a creator of .NET Meteor extension for VSCode. My extension has a Debug in Release feature that allows you to connect the mono debugger for the release apps (with trimming and AOT). It's very useful in some scenarios, when application crushes only in the release mode.

For example:
image

For iOS and Mac I use the _BundlerDebug=true option. Maybe there is an analog for Android?

Steps to Reproduce

  1. dotnet build -c:Release
  2. adb shell setprop debug.mono.connect port=10000
  3. adb shell am start ...
  4. Trying to connect with Mono.Debugging.Soft.ISoftDebuggerConnectionProvider.BeginConnect
E/adbd    : failed to connect to socket 'tcp:10000': Connection refused

Did you find any workaround?

I know that I can use adb logcat, but this way is more convenient for me.

Relevant log output

No response

@JaneySprings JaneySprings added Area: App Runtime Issues in `libmonodroid.so`. needs-triage Issues that need to be assigned. labels May 11, 2024
@JaneySprings JaneySprings changed the title A way to connect Mono Debugger for the Release builds [Question] A way to connect Mono Debugger for the Release builds May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: App Runtime Issues in `libmonodroid.so`. needs-triage Issues that need to be assigned.
Projects
None yet
Development

No branches or pull requests

2 participants