Breakpoints not Working in Android Studio 3.3
Asked Answered
T

3

6

After noticing that some breakpoints are not getting hit, I found this post that answers why:

Breakpoints not working on Android Studio 3.3

I don't recall this happening prior to Android Studio 3.3. Is there any way to stop this behavior so that breakpoints will get hit on conditional statements?

Tuscan answered 23/1, 2019 at 0:16 Comment(0)
A
4

Found here setting minifyEnabled false in the debug build is the best practice.

I just change minifyEnabled in build.grandle to 'false' on debug buildTypes and it works!

Apterygial answered 23/1, 2019 at 8:34 Comment(3)
did it really work for you? Did you really had the same issue has @user982687, I already had minifyEnable = false on every buildType and upon upgrading I have the exact same issue has the OP. What bugs me the most, is that breakpoints on conditional statements are the most useful to me, and they were working before!Padlock
I don't know why Khdkls's answer is not selected as "Best Answer"!Racine
When proguard is enabled, the breakpoints won't work. The method names and attributes would have been obfuscated.Himyaritic
N
3

Rebuild solved my problem.

clean & rebuild

Invalidates caches/restart if necessary

Nucleate answered 1/9, 2020 at 7:34 Comment(0)
L
0

In my case I fixed the problem by updating Android Studio to the latest version 4.0.1.

Longicorn answered 15/7, 2020 at 21:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.