运行窗口消息“相同的行” [英] Run window message 'Identical line'
本文介绍了运行窗口消息“相同的行”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该关注运行窗口中的以下消息吗? :
Should I be concerned about the following message in the Run window? :
I/chatty ( 7764): uid=10079(com.homemy.myapp) Thread-67 identical 24 lines
推荐答案
I/flutter ( 7764): myDate.day is 16
I/chatty ( 7764): uid=10079(com.homemy.myspriteapp) Thread-78 identical 17 lines
假定您打印 myDate.day为16的代码在短时间内运行了多次,而不是
Presumably your code that prints myDate.day is 16
has run multiple times in a short space of time so rather than fill the output up, it's been folded into that message.
是否不好取决于代码的位置;如果它在某个地方可以运行很多次(例如在循环中),那当然很好。如果您不希望它执行多次,则可以通过添加一个断点并查看调用堆栈来了解原因。
Whether this is bad depends where the code is; if it's somewhere that is expected to run many times (like inside a loop) then of course it's fine. If it's somewhere you would not expect to execute multiple times, you may be able to understand why it is by adding a breakpoint and reviewing the call stack.
这篇关于运行窗口消息“相同的行”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文