Removing Unnecessary Messages in Output Window When Debugging

Nathan Sokalski 4,116 Reputation points
2020-12-27T17:41:07.057+00:00

When debugging my Xamarin.Forms app (which is being written for and debugged using an Android emulator in Visual Studio 2019 16.8.3), I receive tons of unnecessary output in the Output Window, making it much less useful because it is hard to find my output from lines using System.Diagnostics.Debug.WriteLine(), as well as being able to notice when there are other messages that are meaningful. Here are several example lines (just picked at random, I'm not asking what they mean) that I do not want displayed in the Output Window:

12-27 12:36:33.166 D/Mono (15366): Probing 'java_interop_jnienv_new_object_array'.
12-27 12:36:33.166 D/Mono (15366): Found as 'java_interop_jnienv_new_object_array'.
12-27 12:36:33.171 D/Mono (15366): DllImport searching in: '__Internal' ('(null)').
12-27 12:36:33.171 D/Mono (15366): Searching for 'java_interop_jnienv_set_object_array_element'.
12-27 12:36:33.171 D/Mono (15366): Probing 'java_interop_jnienv_set_object_array_element'.
12-27 12:36:33.171 D/Mono (15366): Found as 'java_interop_jnienv_set_object_array_element'.
12-27 12:36:33.176 D/Mono (15366): DllImport searching in: '__Internal' ('(null)').
12-27 12:36:33.176 D/Mono (15366): Searching for 'java_interop_jnienv_get_object_array_element'.
12-27 12:36:33.176 D/Mono (15366): Probing 'java_interop_jnienv_get_object_array_element'.
12-27 12:36:33.176 D/Mono (15366): Found as 'java_interop_jnienv_get_object_array_element'.
12-27 12:36:33.273 D/Mono (15366): Requesting loading reference 19 (of 22) of Xamarin.Forms.Platform.Android.dll
12-27 12:36:33.273 D/Mono (15366): Loading reference 19 of Xamarin.Forms.Platform.Android.dll asmctx DEFAULT, looking for Xamarin.AndroidX.AppCompat.AppCompatResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
12-27 12:36:33.273 D/Mono (15366): Assembly Ref addref Xamarin.Forms.Platform.Android[0xdffc2080] -> Xamarin.AndroidX.AppCompat.AppCompatResources[0xeb4245c0]: 2
12-27 12:36:33.273 D/Mono (15366): Requesting loading reference 2 (of 5) of Xamarin.AndroidX.AppCompat.AppCompatResources.dll
12-27 12:36:33.273 D/Mono (15366): Loading reference 2 of Xamarin.AndroidX.AppCompat.AppCompatResources.dll asmctx DEFAULT, looking for Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
12-27 12:36:33.273 D/Mono (15366): Assembly Ref addref Xamarin.AndroidX.AppCompat.AppCompatResources[0xeb4245c0] -> Java.Interop[0xdffc28c0]: 21
12-27 12:36:33.379 D/Mono (15366): Requesting loading reference 4 (of 10) of AppForms.Android.dll

How can I prevent Visual Studio 2019 from displaying all these extra lines in the Output Window? Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,295 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    13 deleted comments

    Comments have been turned off. Learn more