Smart step into skips methods from subclasses
#KT-11705 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at smartStepIntoSubClass.kt:7
|
||||
!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! smartStepIntoSubClass.SmartStepIntoSubClassKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
smartStepIntoSubClass.kt:7
|
||||
smartStepIntoSubClass.kt:18
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,20 @@
|
||||
package smartStepIntoSubClass
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val x: Base = Impl()
|
||||
// SMART_STEP_INTO_BY_INDEX: 1
|
||||
//Breakpoint!
|
||||
x.foo(args.toString())
|
||||
}
|
||||
|
||||
open class Base {
|
||||
open fun foo(s: String) {
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
class Impl: Base() {
|
||||
override fun foo(s: String) {
|
||||
val b = 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user