Debugger: allow to evaluate 'this' and fields in java files

This commit is contained in:
Natalia Ukhorskaya
2016-08-12 10:33:30 +03:00
parent 18887f8bec
commit f6bb70aad1
5 changed files with 65 additions and 15 deletions
@@ -0,0 +1,18 @@
package jcProperty
fun main(args: Array<String>) {
val javaClass = forTests.javaContext.JavaClass()
//Breakpoint!
javaClass.property()
}
// STEP_INTO: 1
// EXPRESSION: this.javaProperty
// RESULT: 1: I
// EXPRESSION: javaProperty
// RESULT: 1: I
// EXPRESSION: javaPrivateProperty
// RESULT: 1: I
@@ -39,4 +39,11 @@ public class JavaClass {
Integer i = 1;
int breakpoint = 1;
}
public int javaProperty = 1;
private int javaPrivateProperty = 1;
public void property() {
int breakpoint = 1;
}
}