Debugger: Fix method evaluation on arrays (KT-11706)

This commit is contained in:
Yan Zhulanow
2019-04-17 01:24:15 +03:00
parent 38dba20e24
commit 9ae8a8abf1
4 changed files with 58 additions and 8 deletions
@@ -0,0 +1,15 @@
package arrayMethods
fun main(args: Array<String>) {
//Breakpoint!
val a = 5
}
// EXPRESSION: args.toString().length > 0
// RESULT: 1: Z
// EXPRESSION: args.hashCode() and 0
// RESULT: 0: I
// EXPRESSION: args.clone()
// RESULT: instance of java.lang.String[0] (id=ID): [Ljava/lang/String;
@@ -0,0 +1,10 @@
LineBreakpoint created at arrayMethods.kt:5
Run Java
Connected to the target VM
arrayMethods.kt:5
Compile bytecode for args.toString().length > 0
Compile bytecode for args.hashCode() and 0
Compile bytecode for args.clone()
Disconnected from the target VM
Process finished with exit code 0