Search code examples
androidandroid-studiodebuggingbreakpoints

Breakpoint issue in async requests


I ran into a problem with breakpoints:

when I put breakpoints in any place in code which run in background thread Android Studio show crossed white circle and this breakpoint doesn't work. I tried to "play" with breakpoint parameters (in case if studio bug in parameters) but it not helped. It's looks like this problem occur only when I put breakpoint in async code like Rx or LiveData.

Is anyone know how to solve this problem?

Thanks in advance.

enter image description here


Solution

  • The reason of problem was

    minifyEnabled true
    

    in Gradle debug configuration

    I set in to false and now breakpoints work as expected