Test for "Breakpoint inside lambda argument of InlineOnly function doesn't work" (KT-11395)
(cherry picked from commit d0ffe06) #KT-11395 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
87b628a3f7
commit
9594316b0a
@@ -0,0 +1,8 @@
|
|||||||
|
LineBreakpoint created at noParameterLambdaArgumentCallInLambda.kt:9 lambdaOrdinal = 1
|
||||||
|
!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! noParameterLambdaArgumentCallInLambda.NoParameterLambdaArgumentCallInLambdaKt
|
||||||
|
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
noParameterLambdaArgumentCallInLambda.kt:9
|
||||||
|
noParameterLambdaArgumentCallInLambda.kt:10
|
||||||
|
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
|
||||||
|
Process finished with exit code 0
|
||||||
Vendored
+16
@@ -0,0 +1,16 @@
|
|||||||
|
package noParameterLambdaArgumentCallInLambda
|
||||||
|
|
||||||
|
/*
|
||||||
|
KT-11395 Breakpoint inside lambda argument of InlineOnly function doesn't work
|
||||||
|
*/
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
//Breakpoint! (lambdaOrdinal = 1)
|
||||||
|
foo { val a = 11 } // Breakpoint inside lambda argument
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun foo(s: () -> Unit) {
|
||||||
|
val x = 22
|
||||||
|
s()
|
||||||
|
val y = 33
|
||||||
|
}
|
||||||
@@ -439,6 +439,12 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
|
|||||||
doStepOverTest(fileName);
|
doStepOverTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("noParameterLambdaArgumentCallInLambda.kt")
|
||||||
|
public void testNoParameterLambdaArgumentCallInLambda() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOver/noParameterLambdaArgumentCallInLambda.kt");
|
||||||
|
doStepOverTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("stepOverCatchClause.kt")
|
@TestMetadata("stepOverCatchClause.kt")
|
||||||
public void testStepOverCatchClause() throws Exception {
|
public void testStepOverCatchClause() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverCatchClause.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/stepOver/stepOverCatchClause.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user