Stepping for inline function: filter out inline function body lines from step over

#KT-9665 Fixed
This commit is contained in:
Natalia Ukhorskaya
2015-10-20 13:38:56 +03:00
parent b8e649e843
commit 17a564495d
5 changed files with 52 additions and 1 deletions
@@ -0,0 +1,8 @@
LineBreakpoint created at inlineFunctionSameLines.kt:12
!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! inlineFunctionSameLines.InlineFunctionSameLinesKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
inlineFunctionSameLines.kt:12
inlineFunctionSameLines.kt:13
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,9 @@
package inlineFunctionSameLines
inline fun <reified T> myFun(t: T): Int {
val a = 1
val b = 2
val c = 3
val d = 4
return 1
}
@@ -0,0 +1,14 @@
package inlineFunctionSameLines
fun main(args: Array<String>) {
if (1 > 2) {
val a = 1
}
else {
val b = 2
}
//Breakpoint!
myFun(1)
val a = 1
}