Debugger: variable resolution for Kotlin
11 Jun 2018 | debugger kotlin soot jvmShort update on debugger support for kotlin
.
Recent fixes (#1, #2) unblocked debugger for kotlin but variable resolution is still broken. It still produces following error messages on synthetic kotlin
code for lambdas and collections:
[ERROR] Unable to resolve variable $i$a$1$forEach in method test, class com.test.ViewController
This happen as this variable was declared in synthetic code and this code is out scope defined in debug information for this variable.
Code for variable resolution was pending to upgrade long time ago and best case would be to have variable information without dependency to debug information.
But not so fast: it is not always possible to do it straight away without assumptions and debug information. Integer types case is described bellow.