Restrict debug messages in the output window to just my debug messages


I am trying to debug a Xamarin Forms project running on an android device using VS 2015.

I have numerous Debug.WriteLine messages in my code and when I try to follow these the output window gets swamped with other messages that are not from me. An example is below.

01-12 18:33:47.290 D/Mono (23826): Unloading image System.Core.dll [0xae8f7200].
01-12 18:33:47.290 D/Mono (23826): Image addref System.Core[0x99455d60] -> System.Core.dll[0x9b30d100]: 72
01-12 18:33:47.300 D/Mono (23826): Config attempting to parse: 'System.Core.dll.config'.

Is there any way to turn off these other messages so that I can follow mine?



  • An update:

    I managed to reduce the mono ones using the help here:

    There are still other messages such as these appearing which still makes debugging harder than it should be.

    01-12 18:52:14.880 W/art (27311): JNI RegisterNativeMethods: attempt to register 0 native methods for md5aa27393062b5bce85705a9ca4f7e8315.ExtendedEditorRenderer
    01-12 18:52:15.110 D/AbsSeekBar(27311): AbsSeekBar Constructor: mAllowedSeeBarAnimation = false
    01-12 18:52:15.290 D/AbsSeekBar(27311): AbsSeekBar Constructor: mAllowedSeeBarAnimation = false
    01-12 18:52:15.330 D/AbsListView(27311): viewType is heaer or footer


  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    Install the VSIX VS Color Output.
    Then add a color for a special keyword such as the name of your app
    Then include that keyword on the start of your output.
    It won't filter the output console, but it will make it easier to see just your messages.

  • Thanks, that does make it easier to see.

  • KuhdinkleKuhdinkle USMember ✭✭

    There's a crying need to be able to restrict Output windows messages. Something systematic would be great. That would mean either having some explanation for any message that appears, or being able to effectively filter them.

  • RubenvanLeeuwenRubenvanLeeuwen USMember
    edited December 2017

    They should make a definition dependency like: #XAMARIN_NO_DEBUG
    Could be done but I'm guessing it will be a lot of work

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    There is a VS plugin called "VS Color Output".
    It parses in real-time and colors the output window so "error" gets a red line and so on.
    You can add your own word/color combinations. So if you want you can add "XAM/Blue" for example to at least make your messages stand out.

  • NickKovalskyNickKovalsky USMember ✭✭✭
    edited December 2018
Sign In or Register to comment.