-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[monodroid] Add
debug.mono.log=debugger-log-level=LEVEL
option (#3969)
The mono debugger infrastructure code supports a `loglevel` option, which the mono debugger team would like to set. In theory we have code to allow setting set it: the `debug.mono.extra` system property can contain a `loglevel=LEVEL` option, which is parsed by `mono_runtime_init()`/`parse_runtime_args()` when constructing the options for use with `mono_jit_parse_options()`. In practice, we don't: [all codepaths][0] which set `debug.mono.extra` always hardcode `loglevel=0`, with no way to override it. To allow the mono debugger team to *actually* set the `loglevel` value, add a new `debugger-log-level=LEVEL` option for use with the `debug.mono.log` system property: adb shell setprop debug.mono.log debugger-log-level=10 The `debug.mono.log` system property is comma-separated, so it can be used with other options as well: adb shell setprop debug.mono.log timing,gref,debugger-log-level=10 The `LEVEL` value is a positive 32-bit signed integer or `0`. This option will take precedence when the level is set in both the `debug.mono.extra` and `debug.mono.log` system properties. [0]: https://github.com/xamarin/androidtools/blob/master/Xamarin.AndroidTools/Debugging/DebuggingExtensions.cs#L92-L102
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters