question

njsokalski avatar image
0 Votes"
njsokalski asked TianyuSun-MSFT answered

Output Window Filter - View Tag

I often use Visual Studio 2019's Output Window for debugging my Xamarin.Android apps. However, I nearly always receive tons of unnecessary messages starting with [View], such as the following:

[View] requestLayout() improperly called by androidx.recyclerview.widget.RecyclerView{c1098fc VFED..... ......ID 83,0-1440,94 #7f090150 app:id/rvPlayerNames} during layout: running second layout pass

I have looked at the following to try to figure out how to avoid these messages cluttering the Output Window:

https://docs.microsoft.com/en-us/xamarin/android/deploy-test/environment

But none of the stuff seemed to help. What can I do to restrict the Output Window to (or mostly to) my
System.Diagnostics.Debug.WriteLine
statements? Using these statements is not very useful if they have hundreds of meaningless lines between them.

vs-debugging
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered

Hello @njsokalski ,

Welcome to Microsoft Q&A forum.

Please kindly check if these options work for you.

1). Tools > Options > Xamarin > Android Settings > Xamarin Diagnostics output verbosity.

2). Tools > Options > Debugging > Output Window > General Output Settings.

3). Tools > Options > Projects and Solutions > Build And Run > MSBuild project build output verbosity.

AFAIK, Output Window doesn’t provide more/other options to filter. If above options don’t work, I'm afraid, you may still need to use System.Diagnostics.Debug.WriteLine statements to filter. I recommend you directly suggest this feature to Visual Studio Product Team in Developer Community.

Best Regards,
Tianyu


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.