Skip to content Skip to sidebar Skip to footer

Android Studio Breakpoint Cross Explanation

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 thi

Solution 1:

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.

Post a Comment for "Android Studio Breakpoint Cross Explanation"