Flutter disable system debug messages in Run Tab

后端 未结 5 1134
猫巷女王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:55

    In Android Studio....

    Before

    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. For example in Flutter, I'd remove D/ (i.e. letter D + forward slash) which are emulator debug messages.

    After


提交回复
热议问题