我需要Xamarin专家的帮助。自最近两天以来,我在调试Xamarin程序时一直在禁用“输出”窗口中的有害噪音消息。我正在以调试模式在Samsung Tablet上部署我的应用程序。我无法读取我的消息,因为如下所示,输出窗口已被噪声消息淹没。
几天前它运行良好,然后突然出现了所有这些消息。感染我没有安装或更新VS2017。
如何禁用它。
示例:-
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
答案 0 :(得分:0)
这些消息通常会使“输出”窗口超载。他们中的许多人非常有帮助,许多根本没有。但是,如果您只想查看自定义消息,则需要将其过滤掉。
我尝试了Tools | Options | Debugging | General > Redirect all Output Window text to the Immediate Window
,但是它没有重定向Xamarin Forms项目中的消息。我使用了外部设备,也许可以使用移动模拟器运行。
您可以尝试以下插件/工具:
答案 1 :(得分:0)
我也想过滤Visual Studio输出,因此最终我决定编写一个扩展来做到这一点。如果您有兴趣,可以在niahtextfilter.com上查看。
这里是它的作用的一个想法(这显示了它对关键字进行过滤,但是您也可以对OP想要的关键字进行逆过滤):
答案 2 :(得分:0)