gpt4 book ai didi

android-studio - Flutter 在运行选项卡中禁用系统调试消息

转载 作者:IT老高 更新时间:2023-10-28 12:38:02 25 4
gpt4 key购买 nike

我用:

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

调试我由 Android Studio 开发的 flutter 应用程序。但是,[运行选项卡]中的输出通常是这样的:

Tens/Hundreds of system debug messages
I/flutter ( 9154): Pls. show this line only
Tens/Hundreds of system debug messages

好的,有时我需要几分钟才能找到我自己的调试消息 [请。仅显示此行]。

我的问题很简单,如何在 Android Studio 中 Flutter Project 的 Run Tab 中禁用【Tens/Hundreds of system debug messages】?

同时,我正在使用:

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

作为一种解决方法。

最佳答案

在 Android Studio 中......

之前

enter image description here

设置

文件 > 设置 > 编辑器 > 常规 > 控制台

查找部分:

折叠包含

的控制台行

点击可滚动列表右侧的+按钮

添加您希望从控制台输出中隐藏的子字符串。 enter image description here例如在 Flutter 中,我会删除模拟器调试消息的 D/(即字母 D + 正斜杠)。

之后

enter image description here


关于android-studio - Flutter 在运行选项卡中禁用系统调试消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55437643/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com