title: Object evaluate is always null in Android Studio debug
body: <p>I have found a weird behavior while debugging in Android Studio. I am using a real device (not an emulator). I have the following code:</p>
  <pre><code> val currentFragment = supportFragmentManager.findFragmentById(R.id.act_navhost_fragment)
              if (currentFragment is BottomNavFragment) {
              ...
  </code></pre>
  <p>In debug I see the following:
  <a href="https://i.stack.imgur.com/dA0vC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dA0vC.png" alt="enter image description here" /></a></p>
  <p>As you may see, currentFragment is not null. However, if I try to evaluate only the expression
  supportFragmentManager.findFragmentById(R.id.act_navhost_fragment), the result is null.</p>
  <p><a href="https://i.stack.imgur.com/zgEBO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zgEBO.png" alt="enter image description here" /></a></p>
  <p>How is it possible? I know it's probably a very silly question but I don't understand why evaluate expression gives a different result compare to runtime code, maybe it's because of fragment id? Is there a way to evaluate such expressions?</p>