title: Android Studio debugger doesn't work when using inline/crossinline functions
body: <p>I am currently trying to implement a web service on Kotlin, the solution that i came out with works as expected, but the Android Studio debugger doesn't.</p>
  
  <p>This is my code simplified:</p>
  
  <pre><code>fun loop(){
      Handler().postDelayed({
          subscribeCommand&lt;TestModel&gt; {
              println("RESULT")
              loop()
          }
      }, 1000)
  }
  
  fun startRequest(callback : () -&gt; Unit){
      callback()
  }
  
  inline fun &lt;reified T&gt; subscribeCommand(crossinline onResult : (MutableList&lt;T&gt;) -&gt; Unit){
      startRequest {
          onResult(mutableListOf&lt;T&gt;())
      }
  }
  </code></pre>
  
  <p>This code prints "Result" in the console every second when calling <code>loop()</code></p>
  
  <p>I have an extra function <code>startRequest()</code>, thats because i will be using that callback on something else.</p>
  
  <p>When placing a breakpoint in the <code>println("RESULT")</code> it works the first time the application starts, but then i remove the breakpoint and continue the execution.
  After a few seconds i place the breakpoint back, the code still runs as expected, but the debugger doesn't catch it anymore.</p>
  
  <p>I need to use generic types and that's why i am using these inline/crossinline function and i haven't found a different approach to this.</p>
  
  <p>This is what i am using
  Android Studio 3.4.1
  Gradle 3.4.1
  Kotlin 1.3.41
  MinSdkVersion 16
  TargetSdkVersion 28</p>