Debugger: fix step over inside inline function (do not step into function literal argument)
This commit is contained in:
@@ -17,7 +17,6 @@ stepOverIfWithInline.kt:24
|
||||
stepOverIfWithInline.kt:28
|
||||
stepOverIfWithInline.kt:46
|
||||
stepOverIfWithInline.kt:28
|
||||
stepOverIfWithInline.kt:28
|
||||
stepOverIfWithInline.kt:32
|
||||
stepOverIfWithInline.kt:46
|
||||
stepOverIfWithInline.kt:32
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
LineBreakpoint created at stepOverInsideInlineFun.kt:11
|
||||
!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! stepOverInsideInlineFun.StepOverInsideInlineFunKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
stepOverInsideInlineFun.kt:11
|
||||
stepOverInsideInlineFun.kt:12
|
||||
stepOverInsideInlineFun.kt:13
|
||||
stepOverInsideInlineFun.kt:7
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -17,6 +17,9 @@ stepOverTryCatchWithInline.kt:36
|
||||
stepOverTryCatchWithInline.kt:38
|
||||
stepOverTryCatchWithInline.kt:39
|
||||
stepOverTryCatchWithInline.kt:43
|
||||
stepOverTryCatchWithInline.kt:48
|
||||
stepOverTryCatchWithInline.kt:43
|
||||
stepOverTryCatchWithInline.kt:7
|
||||
stepOverTryCatchWithInline.kt:8
|
||||
stepOverTryCatchWithInline.kt:10
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package stepOverInsideInlineFun
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
bar {
|
||||
val b = 1
|
||||
}
|
||||
}
|
||||
|
||||
inline fun bar(f: (Int) -> Unit) {
|
||||
//Breakpoint!
|
||||
val a = 1
|
||||
val f = f(1)
|
||||
val c = 1
|
||||
}
|
||||
|
||||
// STEP_OVER: 3
|
||||
+1
-1
@@ -51,4 +51,4 @@ inline fun foo(f: () -> Int): Int {
|
||||
|
||||
fun test(i: Int) = 1
|
||||
|
||||
// STEP_OVER: 19
|
||||
// STEP_OVER: 20
|
||||
Reference in New Issue
Block a user