杀死该应用程序后,如何在调试中打印如何打印
我知道,即使应用程序没有在后台或其他目的进行测试,我也可以在控制台中进行调试和打印,但我以前对其进行测试,但我忘记了如何做, 这是您在Terminal写的命令,所以如果有人知道,请帮助我,
谢谢大家
I know in flutter we can debug and print in the console even if the app is not running to test things in the background or other purposes , and i test it before but i forgot how to do it ,
it was a Command you write in turminal, so if anyone know please help me
Thanks for everyone
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试在终端上运行吗? :
Can you try run on terminal ? :
确保使用
debugprint(字符串?,int?)
函数打印到日志中然后,您可以输入
flutter logs
(如果您的Android Studio)中的底部栏中的终端( logcat 选项卡)。为了轻松使用,如果您从不同的应用程序中获取日志,则可以将日志过滤到应用程序包。
Make sure that you print into the log using the
DebugPrint(String? , int?)
functionthen you can enter
flutter logs
into the terminal (Logcat tab in the bottom bar if you Android Studio).For easy use filter your log to your app package if you get logs from different apps.