Debugger: refactor smart step into to use descriptors instead of psi elements (KT-13485)

#KT-13485 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-10-27 17:13:24 +03:00
committed by Nikolay Krasko
parent f7203da2d6
commit 0fb5a18a26
10 changed files with 163 additions and 68 deletions
@@ -9,30 +9,36 @@ LineBreakpoint created at smartStepIntoConstructor.kt:35
LineBreakpoint created at smartStepIntoConstructor.kt:39
LineBreakpoint created at smartStepIntoConstructor.kt:43
LineBreakpoint created at smartStepIntoConstructor.kt:47
LineBreakpoint created at smartStepIntoConstructor.kt:51
LineBreakpoint created at smartStepIntoConstructor.kt:55
!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! smartStepIntoConstructor.SmartStepIntoConstructorKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
smartStepIntoConstructor.kt:7
smartStepIntoConstructor.kt:51
smartStepIntoConstructor.kt:59
smartStepIntoConstructor.kt:11
smartStepIntoConstructor.kt:52
smartStepIntoConstructor.kt:60
smartStepIntoConstructor.kt:15
smartStepIntoConstructor.kt:54
smartStepIntoConstructor.kt:62
smartStepIntoConstructor.kt:19
smartStepIntoConstructor.kt:57
smartStepIntoConstructor.kt:65
smartStepIntoConstructor.kt:23
smartStepIntoConstructor.kt:61
smartStepIntoConstructor.kt:27
smartStepIntoConstructor.kt:66
smartStepIntoConstructor.kt:31
smartStepIntoConstructor.kt:69
smartStepIntoConstructor.kt:35
smartStepIntoConstructor.kt:27
smartStepIntoConstructor.kt:74
smartStepIntoConstructor.kt:31
smartStepIntoConstructor.kt:77
smartStepIntoConstructor.kt:35
smartStepIntoConstructor.kt:82
smartStepIntoConstructor.kt:39
smartStepIntoConstructor.kt:81
smartStepIntoConstructor.kt:43
smartStepIntoConstructor.kt:89
smartStepIntoConstructor.kt:47
smartStepIntoConstructor.kt:43
smartStepIntoConstructor.kt:97
smartStepIntoConstructor.kt:47
smartStepIntoConstructor.kt:105
smartStepIntoConstructor.kt:51
smartStepIntoConstructor.kt:112
smartStepIntoConstructor.kt:55
smartStepIntoConstructor.kt:113
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,13 @@
LineBreakpoint created at smartStepIntoInterfaceFun.kt:23
LineBreakpoint created at smartStepIntoInterfaceFun.kt:27
!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! smartStepIntoInterfaceFun.SmartStepIntoInterfaceFunKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
smartStepIntoInterfaceFun.kt:23
smartStepIntoInterfaceFun.kt:11
smartStepIntoInterfaceFun.kt:27
smartStepIntoInterfaceFun.kt:14
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -45,6 +45,14 @@ fun main(args: Array<String>) {
// RESUME: 1
//Breakpoint!
N(1)
// SMART_STEP_INTO_BY_INDEX: 1
// RESUME: 1
//Breakpoint!
O(1)
// SMART_STEP_INTO_BY_INDEX: 1
// RESUME: 1
//Breakpoint!
O(1, "1")
}
@@ -100,4 +108,8 @@ class N {
constructor() {
}
}
class O<T>(i: T) {
constructor(i: Int, j: T): this(j) {
}
}
@@ -0,0 +1,28 @@
// KT-13485
package smartStepIntoInterfaceFun
interface ObjectFace<T> {
fun act()
fun act2(t: T)
}
class ObjectClass : ObjectFace<Int> {
override fun act() {
println()
}
override fun act2(t: Int) {
println()
}
}
fun main(args: Array<String>) {
val simple: ObjectFace<Int> = ObjectClass()
// SMART_STEP_INTO_BY_INDEX: 1
// RESUME: 1
//Breakpoint!
simple.act()
// SMART_STEP_INTO_BY_INDEX: 1
// RESUME: 1
//Breakpoint!
simple.act2(1)
}