Android Studio断点交叉解释 [英] Android Studio breakpoint cross explanation
问题描述
我注意到有时我的断点有一个十字架,不要暂停执行。
在intellij网站上,这被解释为:显示断点是否在已注释的或不可执行的行上设置,表示这样的断点不会被击中。
任何人都可以告诉我上述摘要如何解释以下断点的行为:
为什么第二个断点有一个勾号?我很困惑!
通常是因为连接的设备上的代码与屏幕上的代码不同。 p>
以不同的词语,调试器知道断点是基于代码上的行号,因此您可能添加了一行代码,并通过该行移动了行
超级简单的方法来修复它是在设备上编译代码和闪存。
I'm debugging my Android project in Android Studio using breakpoints.
I've noticed sometimes my breakpoints have a cross in them and don't pause execution.
On the intellij site this is explained as: "Shows when the breakpoint is set on a commented or non-executable line indicating that such breakpoint would not be hit."
Could anyone tell me how the above summary can explain the behaviour of the following breakpoints:
Why does the second breakpoint have a tick? I'm confused!
that's usually because the code on the connected device is different than the code on your screen.
In different words, the debugger "knows" where a break point is based on the line number on the code, so you probably added lines of code, and by that moved the line position a few lines down.
Super simple way to fix that is compile the code and flash again on the device.
这篇关于Android Studio断点交叉解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!