Flutter disable system debug messages in Run Tab

后端 未结 5 1152
猫巷女王i
猫巷女王i 2020-12-31 22:10

I use:

print(\'Pls. show this line only\');

to debug my flutter apps developed by Android Studio. However, the output in the [Run Tab] is

5条回答
  •  情深已故
    2020-12-31 22:33

    I Finally found a Workaround For VS code this is NOT permanent so you have to do it once per session but it helps a lot ...

    there is a hidden feature in vs code for debug log filtering and all you need to do is to filter the log to have only the flutter related logs as follows :

    1) focus on debug console (by clicking on it )

    2) click ctrl + f (nothing will appear but you are now in filtering mode)

    3) Type "I/Flutter"

    4) hover on the word and click the icon next to it to make it stick .

    that's it !

    Before :

    After:

提交回复
热议问题