title: Debug Kotlins coroutines in Android
body: <p>Is it possible to debug a coroutine in Android? When I tried to debug this code snippet:</p>
  
  <pre><code>runBlocking {
          try {
              async(CommonPool) {
                  showLoadingIndicator()
                  val a = loadData().await()
                  hideLoadingIndicator()
              }
          } catch (e: Exception) {
              Log.e("lala", "exception " + e.toString())
          }
  }
  </code></pre>
  
  <p><code>val a</code> has the following message: <code>Cannot find local variable: name = a</code></p>
  
  <p>In my App, I'm setting the property for coroutines debugging as followed:</p>
  
  <pre><code>System.setProperty("kotlinx.coroutines.debug", if (BuildConfig.DEBUG) "on" else "off")
  </code></pre>
  
  <p>Still not working. Now I have no idea how to use the debugger when working with coroutines.
  May you guys help me please?</p>
  
  <p>Thanks in advance</p>
  
  <p>Alban</p>