Debug reified Kotlin under Android SDK 25

I can not use the step by step tracing with reified functions, under Android SDK 25.

I create an emulator with SDK 29, everything is OK, i can put breakpoints and trace step by step.

I create an emulator with SDK 25, debug tracing is no longer available in reified function. I did the same test with a physical device running with Android 7.1.1, there is the same problème.

Under SDK 25 :

  • I put break points on line 10 and 14
  • When the debuger reachs the line 10, i press F7 (step in) or F8 or F5 to enter the function test
  • The debuger jumps immediately to line 17 and never stop or enter the function test
  • The program runs well, but i can not enter the reified function with the same program installed on Android 7.1.1. On Android 10 everything is ok.
1  class MainActivity : AppCompatActivity() {
2      private lateinit var binding: ActivityMainBinding
3  
4      override fun onCreate(savedInstanceState: Bundle?) {
5          super.onCreate(savedInstanceState)
6  
7          binding = ActivityMainBinding.inflate(layoutInflater)
8          setContentView(binding.root)
9  
10         test<String>("test")   // Call the inline function
11     }
12 
13     inline fun <reified T : Any> test(value: T): Boolean {
14         println( "MainActivity.test : ${T::class.java}")
15         return true
16     }
17  }  // Debuger jumps here