Sometimes with Android Studio (but I guess it's th...
# announcements
d
Sometimes with Android Studio (but I guess it's the same with Intellij, that's why I ask here and not in #C0B8M7BUY ) I place a breakpoint on a kotlin piece of code and the Debugger DO NOT stop on it... If I place the breakpoint earlier and step it DOES pass there.. so the breakpoint isn't working. Anyone else experiencing this?
n
i do sometimes experience that.. so i place more breakpoints and generally it stops at least on one of them.. its really confusing and i hope its fixed soon.. i got used to less breakpoints and more printf debugging using logger calls
😕 1
d
Android Studio or Intellij?
t
It's possible it's being optimized out. I started using Kotlin a good 3-4 years ago, it was horrendous then because the complied code was so vastly different, made debugging near impossible. Try to think about what the compiler may be resolving your code into - it's possible (this is even a thing in Java just much less common) your code "no longer exists" because the compiler found a better way to implement and it's having trouble making a 1:1 connection to your breakpoints.