Evaluate expression: add ability to evaluate expression suspending on class header
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
LineBreakpoint created at onClassHeader.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 !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! onClassHeader.OnClassHeaderPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
onClassHeader.kt:6
|
||||
onClassHeader.kt:18
|
||||
onClassHeader.kt:16
|
||||
Compile bytecode for 1 + 1
|
||||
Compile bytecode for this
|
||||
Compile bytecode for this.foo("a")
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,31 @@
|
||||
package onClassHeader
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val d: Base<String> = Derived()
|
||||
//Breakpoint!
|
||||
d.foo("")
|
||||
val a = 1
|
||||
}
|
||||
|
||||
open class Base<T> {
|
||||
open fun foo(t: T): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
class Derived: Base<String>() {
|
||||
override fun foo(t: String): Int {
|
||||
return 2
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 2
|
||||
|
||||
// EXPRESSION: 1 + 1
|
||||
// RESULT: 2: I
|
||||
|
||||
// EXPRESSION: this
|
||||
// RESULT: instance of onClassHeader.Derived(id=ID): LonClassHeader/Derived;
|
||||
|
||||
// EXPRESSION: this.foo("a")
|
||||
// RESULT: 2: I
|
||||
Reference in New Issue
Block a user