Android Studio断点交叉解释 [英] Android Studio breakpoint cross explanation

查看:133
本文介绍了Android Studio断点交叉解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用断点在Android Studio中调试我的Android项目。



我注意到有时我的断点有一个十字架,不要暂停执行。



在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆