Debugger: do not put breakpoints at lines from another file in case of inline function
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
LineBreakpoint created at inlineFunctionWithBreakpoint.kt:4
|
||||
!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! inlineFunctionBreakpointAnotherFile.InlineFunctionBreakpointAnotherFileKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
inlineFunctionWithBreakpoint.kt:4
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -1,9 +1,9 @@
|
||||
LineBreakpoint created at functionInLibrary.kt:4
|
||||
!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! stepIntoStdlibInlineFun2step.StepIntoStdlibInlineFun2stepKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
stepIntoStdlibInlineFun2step.kt:4
|
||||
functionInLibrary.kt:4
|
||||
functionInLibrary.kt:8
|
||||
stepIntoStdlibInlineFun2step.kt:5
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
package inlineFunctionBreakpointAnotherFile
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a1 = 1
|
||||
val a2 = 1
|
||||
val a3 = 1
|
||||
|
||||
inlineFunctionWithBreakpoint.myFun {
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
// ADDITIONAL_BREAKPOINT: inlineFunctionWithBreakpoint.kt:inline fun myFun
|
||||
@@ -0,0 +1,5 @@
|
||||
package inlineFunctionWithBreakpoint
|
||||
|
||||
inline fun myFun(f: (Int) -> Unit) {
|
||||
f(1)
|
||||
}
|
||||
Reference in New Issue
Block a user