-
Notifications
You must be signed in to change notification settings - Fork 569
[clr-android] Add CoreCLR debugger support for Android #10889
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,6 +72,7 @@ public class GenerateNativeApplicationConfigSources : AndroidTask | |
| public string? AndroidSequencePointsMode { get; set; } | ||
| public bool EnableSGenConcurrent { get; set; } | ||
| public string? CustomBundleConfigFile { get; set; } | ||
| public bool EnableCoreClrDebugger { get; set; } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like this could check:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean to exclude this property and use CoreCLR + general purpose debugger property?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could pass in Thays is about to open a PR similar to this one, you might wait (and/or combine) your changes there. |
||
|
|
||
| bool _Debug { | ||
| get { | ||
|
|
@@ -118,13 +119,20 @@ public override bool RunTask () | |
| envBuilder.AddDefaultDebugBuildLogLevel (); | ||
| } | ||
|
|
||
| if (androidRuntime != Xamarin.Android.Tasks.AndroidRuntime.NativeAOT) { | ||
| AddDefaultEnvironmentVariables (envBuilder, HttpClientHandlerType, EnableSGenConcurrent); | ||
| } else { | ||
| if (androidRuntime == Xamarin.Android.Tasks.AndroidRuntime.NativeAOT) { | ||
| // NativeAOT sets all the environment variables from Java, we don't want to repeat that | ||
| // process in the native code. This is just a precaution, because NativeAOT builds should | ||
| // not even use this task. | ||
| envBuilder.EnvironmentVariables.Clear (); | ||
| } else if (androidRuntime == Xamarin.Android.Tasks.AndroidRuntime.CoreCLR) { | ||
| // CoreCLR needs the HTTP client handler type | ||
| envBuilder.AddHttpClientHandlerType (HttpClientHandlerType); | ||
| } else { | ||
| AddDefaultEnvironmentVariables (envBuilder, HttpClientHandlerType, EnableSGenConcurrent); | ||
| } | ||
|
|
||
| if (EnableCoreClrDebugger && TargetsCLR) { | ||
| envBuilder.AddCoreClrDebuggerEnvironment (); | ||
| } | ||
|
|
||
| global::Android.Runtime.BoundExceptionType boundExceptionType; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.