Stepping for inline function: filter out inline function body lines from step over
#KT-9665 Fixed
This commit is contained in:
@@ -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
|
||||
+9
@@ -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
|
||||
}
|
||||
+14
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user