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
+11
View File
@@ -0,0 +1,11 @@
LineBreakpoint created at jcProperty.kt:6
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! jcProperty.JcPropertyKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
jcProperty.kt:6
JavaClass.java:47
Compile bytecode for this.javaProperty
Compile bytecode for javaProperty
Compile bytecode for javaPrivateProperty
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -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;
}
}