Reputation: 1732
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 system debug messages
I/flutter ( 9154): Pls. show this line only
Tens/Hundreds of system debug messages
OK, sometimes it takes me minutes to find my own debug message [Pls. show this line only].
My question is simple, how can we disable [Tens/Hundreds of system debug messages] in the Run Tab of Flutter Project in Android Studio?
Meanwhile, I am using:
print('***************************************************** Pls. show this line only');
as a work around.
Upvotes: 47
Views: 25609
Reputation: 1
Debug(Alt+5) -> Layout Settings -> check variable and console see image below: enter image description here
Upvotes: 0
Reputation: 31
The Flutter Dev Tools show logs in a less verbose way:
Open the Flutter Dev Tools by clicking on the little Dart icon in the console of Android Studio.
Screenshot: Open Flutter Dev Tools and verbose logging
Upvotes: 3
Reputation: 91
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
Upvotes: 5
Reputation: 802
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:
Upvotes: 24
Reputation: 27990
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.
For example in Flutter, I'd remove D/
(i.e. letter D + forward slash) which are emulator debug messages.
Upvotes: 65
Reputation: 131
In Android Studio:
Fold lines like this
Upvotes: 13
Reputation: 11651
Select the option as shown in case IntelliJ IDEs or Android Studio
Now you can filter as follows
Upvotes: 8