[英]How to remove unwanted messages in debug output window - Xamarin on visual studio
我需要 Xamarin 專家的幫助。 自過去 2 天以來,在調試 Xamarin 程序時,我一直在努力禁用輸出窗口中不需要的噪音消息。 我正在以調試模式在三星平板電腦上部署我的應用程序。 我無法閱讀我的消息,因為輸出窗口中充斥着如下噪聲消息。
幾天前它運行良好,然后突然出現所有這些消息。
如何禁用它?
例子:
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
這些消息經常會使輸出窗口過載。 他們中的許多人非常有幫助,許多人根本沒有。 但是,如果您只想查看自定義消息,則需要將它們過濾掉。
我試過Tools | Options | Debugging | General > Redirect all Output Window text to the Immediate Window
Tools | Options | Debugging | General > Redirect all Output Window text to the Immediate Window
Tools | Options | Debugging | General > Redirect all Output Window text to the Immediate Window
,但它沒有重定向 Xamarin Forms 項目中的消息。 我使用了外部設備,也許可以使用移動模擬器。
你可以試試這些插件/工具:
我也想過濾 Visual Studio 輸出,所以最終我決定編寫一個擴展來做到這一點。 如果您有興趣,可以在niahtextfilter.com 上查看。
這是它的作用的一個想法(這顯示它對關鍵字進行過濾,但您也可以對 OP 想要的關鍵字進行反向過濾):
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.