Cannot watch Kotlin variable in android studio : <p>I am not able to get android studio display the value of a calculation in the watches window.</p>

<p>I use Kotlin for development and when i try to add a value to watches, i get a message which says "An exception occurs during evaluate expression".</p>

<p>e.g.</p>

<pre><code>   val model = MyModel()
   val pos = model.position
</code></pre>

<p>Now if I add <code>model.position</code> to watches, then it gives the above error and the value of the expression is not displayed.</p>

<p>How can I fix this?</p>
