gpt4 book ai didi

c# - 如何在调试输出窗口中删除不需要的消息 - Xamarin on visual studio

转载 作者:太空宇宙 更新时间:2023-11-03 14:47:12 24 4
gpt4 key购买 nike

我需要 Xamarin 专家的帮助。自最近 2 天以来,在调试 Xamarin 程序时,我一直在努力禁用输出窗口中不需要的噪音消息。我正在以 Debug模式在三星平板电脑上部署我的应用程序。我无法阅读我的消息,因为输出窗口已被如下所示的噪音消息淹没。

几天前它运行良好,然后突然出现所有这些消息。

如何禁用它?

例子:

12-04 22:37:01.740 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:01.740 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:01.750 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:01.750 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:01.770 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:01.770 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:01.810 D/Mono ( 6464): GC_BRIDGE waiting for bridge processing to finish
12-04 22:37:01.860 I/art ( 6464): Explicit concurrent mark sweep GC freed 30396(1325KB) AllocSpace objects, 3(378KB) LOS objects, 30% free, 37MB/53MB, paused 610us total 46.997ms
12-04 22:37:01.870 D/Mono ( 6464): GC_TAR_BRIDGE bridges 988 objects 1004 opaque 57 colors 988 colors-bridged 988 colors-visible 988 xref 11 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.27ms tarjan 1.10ms scc-setup 0.67ms gather-xref 0.06ms xref-setup 0.03ms cleanup 0.37ms
12-04 22:37:01.870 D/Mono ( 6464): GC_BRIDGE: Complete, was running for 62.26ms
12-04 22:37:01.870 D/Mono ( 6464): GC_MINOR: (Nursery full) time 30.52ms, stw 31.34ms promoted 1332K major size: 4944K in use: 4148K los size: 1024K in use: 349K
12-04 22:37:01.870 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:01.880 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:01.890 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:01.890 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:01.900 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:01.900 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:01.920 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:01.920 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:36:42.351 V/MediaPlayer( 6464): callback application
12-04 22:36:42.351 V/MediaPlayer( 6464): back from callback
12-04 22:36:42.361 V/MediaPlayer-JNI( 6464): getCurrentPosition: 5237 (msec)
12-04 22:36:42.361 V/MediaPlayer-JNI( 6464): seekTo: 0(msec)
12-04 22:36:42.361 V/MediaPlayer( 6464): seekTo 0
12-04 22:36:42.371 V/MediaPlayer( 6464): message received msg=7, ext1=0, ext2=0
12-04 22:36:42.731 V/MediaPlayer( 6464): unrecognized message: (7, 0, 0)
12-04 22:36:42.731 V/MediaPlayer( 6464): callback application
12-04 22:36:42.731 V/MediaPlayer( 6464): back from callback
12-04 22:36:42.741 V/MediaPlayer-JNI( 6464): isPlaying: 0
12-04 22:36:42.751 V/MediaPlayer-JNI( 6464): isPlaying: 0
12-04 22:37:01.970 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:01.980 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:01.980 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:02.000 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:02.000 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:02.010 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:02.010 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false
12-04 22:37:02.030 I/System.out( 6464): (HTTPLog)-Static: isSBSettingEnabled false
12-04 22:37:02.030 I/System.out( 6464): KnoxVpnUidStorageknoxVpnSupported API value returned is false

enter image description here enter image description here enter image description here

最佳答案

这些消息经常会使输出窗口重载。他们中的许多人非常有帮助,许多人根本没有。但是,如果您只想查看自定义消息,则需要将其过滤掉。

我试过 工具 |选项 |调试 | General > Redirect all Output Window text to the Immediate Window ,但它没有重定向 Xamarin Forms 项目中的消息。我使用了外部设备,也许可以使用移动模拟器。

您可以尝试这些插件/工具:

  • VSColorOutput - 为您的消息添加颜色。例如,如果您以关键字(应用程序名称或其他关键字,如“+++”)开始每条消息,然后向该关键字添加模式,它将改变输出窗口中消息的颜色。
  • DebugView - 此工具将拦截/捕获您的 Debug.Write 消息,但仅限于您的本地系统。我个人不知道它对手机等外部设备有何 react 。
  • Filter Debug Window - 向调试窗口添加过滤器。

关于c# - 如何在调试输出窗口中删除不需要的消息 - Xamarin on visual studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53622665/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com