Skip to content Skip to sidebar Skip to footer

Flutter Disable System Debug Messages In Run Tab

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 usually something like: Tens/Hundreds of

Solution 1:

In Android Studio....

Before

enter image description here

Settings

File > Settings > Editor > General > Console

Look for section:

Fold console lines that contain

Click the + button on right hand side of scrollable list

Add your substring of what you'd like hidden from the Console output. enter image description here For example in Flutter, I'd remove D/ (i.e. letter D + forward slash) which are emulator debug messages.

After

enter image description here


Solution 2:

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 .

Vscode debug console filtering for flutter

that's it !

Before :

enter image description here

After:

enter image description here

Solution 3:

In Android Studio:

Solution 4:

Select the option as shown in case IntelliJ IDEs or Android Studio

setting

Now you can filter as follows

filter

Solution 5:

The android-studio 4.0 has a setting to make this messages go away. Go to File -> Settings -> Languages and Frameworks -> Flutter Uncheck the box stating Enable verbose logging

Settings View

Post a Comment for "Flutter Disable System Debug Messages In Run Tab"