Refactor debugger tests
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
This commit is contained in:
+12
@@ -1,3 +1,4 @@
|
||||
// FILE: inlineFunctionSameLines.kt
|
||||
package inlineFunctionSameLines
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@@ -11,4 +12,15 @@ fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
myFun(1)
|
||||
val a = 1
|
||||
}
|
||||
|
||||
// FILE: inlineFunctionSameLinesDependent.kt
|
||||
package inlineFunctionSameLines
|
||||
|
||||
inline fun <reified T> myFun(t: T): Int {
|
||||
val a = 1
|
||||
val b = 2
|
||||
val c = 3
|
||||
val d = 4
|
||||
return 1
|
||||
}
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at inlineFunctionSameLines.kt:12
|
||||
LineBreakpoint created at inlineFunctionSameLines.kt:13
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineFunctionSameLines.kt:12
|
||||
inlineFunctionSameLines.kt:13
|
||||
inlineFunctionSameLines.kt:14
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package inlineInClassDex.other
|
||||
|
||||
class TestDexInlineInClass {
|
||||
inline fun inlineFun() {
|
||||
// Breakpoint 1
|
||||
some()
|
||||
some()
|
||||
}
|
||||
|
||||
fun some() {}
|
||||
}
|
||||
+17
-1
@@ -1,7 +1,23 @@
|
||||
// FILE: inlineInClassDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package inlineInClassDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
inlineInClassDex.other.TestDexInlineInClass().inlineFun()
|
||||
}
|
||||
|
||||
// ADDITIONAL_BREAKPOINT: inlineInClassDex.Other.kt: Breakpoint 1
|
||||
// ADDITIONAL_BREAKPOINT: inlineInClassDex.Other.kt: Breakpoint 1
|
||||
|
||||
// FILE: inlineInClassDex.Other.kt
|
||||
package inlineInClassDex.other
|
||||
|
||||
class TestDexInlineInClass {
|
||||
inline fun inlineFun() {
|
||||
// Breakpoint 1
|
||||
some()
|
||||
some()
|
||||
}
|
||||
|
||||
fun some() {}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at inlineInClassDex.Other.kt:6
|
||||
LineBreakpoint created at inlineInClassDex.Other.kt:7
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineInClassDex.Other.kt:6
|
||||
inlineInClassDex.Other.kt:7
|
||||
inlineInClassDex.Other.kt:8
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: inlineInIfFalseDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package inlineInIfFalseDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
LineBreakpoint created at inlineInIfFalseDex.kt:6
|
||||
LineBreakpoint created at inlineInIfFalseDex.kt:9
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineInIfFalseDex.kt:6
|
||||
inlineInIfFalseDex.kt:9
|
||||
inlineInIfFalseDex.kt:10
|
||||
inlineInIfFalseDex.kt:12
|
||||
inlineInIfFalseDex.kt:13
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: inlineInIfTrueDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package inlineInIfTrueDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
LineBreakpoint created at inlineInIfTrueDex.kt:6
|
||||
LineBreakpoint created at inlineInIfTrueDex.kt:9
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineInIfTrueDex.kt:6
|
||||
inlineInIfTrueDex.kt:7
|
||||
inlineInIfTrueDex.kt:9
|
||||
inlineInIfTrueDex.kt:10
|
||||
inlineInIfTrueDex.kt:12
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package inlineInObjectDex.other
|
||||
|
||||
object TestDexInlineInObject {
|
||||
inline fun inlineFun() {
|
||||
// Breakpoint 1
|
||||
some()
|
||||
some()
|
||||
}
|
||||
|
||||
fun some() {}
|
||||
}
|
||||
+17
-1
@@ -1,7 +1,23 @@
|
||||
// FILE: inlineInObjectDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package inlineInObjectDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
inlineInObjectDex.other.TestDexInlineInObject.inlineFun()
|
||||
}
|
||||
|
||||
// ADDITIONAL_BREAKPOINT: inlineInObjectDex.Other.kt: Breakpoint 1
|
||||
// ADDITIONAL_BREAKPOINT: inlineInObjectDex.Other.kt: Breakpoint 1
|
||||
|
||||
// FILE: inlineInObjectDex.Other.kt
|
||||
package inlineInObjectDex.other
|
||||
|
||||
object TestDexInlineInObject {
|
||||
inline fun inlineFun() {
|
||||
// Breakpoint 1
|
||||
some()
|
||||
some()
|
||||
}
|
||||
|
||||
fun some() {}
|
||||
}
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at inlineInObjectDex.Other.kt:6
|
||||
LineBreakpoint created at inlineInObjectDex.Other.kt:7
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineInObjectDex.Other.kt:6
|
||||
inlineInObjectDex.Other.kt:7
|
||||
inlineInObjectDex.Other.kt:8
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineAnonymousFunctionArgumentDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineAnonymousFunctionArgumentDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+5
-5
@@ -1,10 +1,10 @@
|
||||
LineBreakpoint created at soInlineAnonymousFunctionArgumentDex.kt:5
|
||||
LineBreakpoint created at soInlineAnonymousFunctionArgumentDex.kt:8
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineAnonymousFunctionArgumentDex.kt:5
|
||||
soInlineAnonymousFunctionArgumentDex.kt:7
|
||||
soInlineAnonymousFunctionArgumentDex.kt:11
|
||||
soInlineAnonymousFunctionArgumentDex.kt:12
|
||||
soInlineAnonymousFunctionArgumentDex.kt:8
|
||||
soInlineAnonymousFunctionArgumentDex.kt:10
|
||||
soInlineAnonymousFunctionArgumentDex.kt:14
|
||||
soInlineAnonymousFunctionArgumentDex.kt:15
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineCallInLastStatementInInlineDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineCallInLastStatementInInlineDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
LineBreakpoint created at soInlineCallInLastStatementInInlineDex.kt:10
|
||||
LineBreakpoint created at soInlineCallInLastStatementInInlineDex.kt:13
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineCallInLastStatementInInlineDex.kt:10
|
||||
soInlineCallInLastStatementInInlineDex.kt:11
|
||||
soInlineCallInLastStatementInInlineDex.kt:12
|
||||
soInlineCallInLastStatementInInlineDex.kt:5
|
||||
soInlineCallInLastStatementInInlineDex.kt:6
|
||||
soInlineCallInLastStatementInInlineDex.kt:13
|
||||
soInlineCallInLastStatementInInlineDex.kt:14
|
||||
soInlineCallInLastStatementInInlineDex.kt:15
|
||||
soInlineCallInLastStatementInInlineDex.kt:8
|
||||
soInlineCallInLastStatementInInlineDex.kt:9
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineCallInLastStatementInInlineFunctionArgumentDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineCallInLastStatementInInlineFunctionArgumentDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
LineBreakpoint created at soInlineCallInLastStatementInInlineFunctionArgumentDex.kt:7
|
||||
LineBreakpoint created at soInlineCallInLastStatementInInlineFunctionArgumentDex.kt:10
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineCallInLastStatementInInlineFunctionArgumentDex.kt:7
|
||||
soInlineCallInLastStatementInInlineFunctionArgumentDex.kt:8
|
||||
soInlineCallInLastStatementInInlineFunctionArgumentDex.kt:9
|
||||
soInlineCallInLastStatementInInlineFunctionArgumentDex.kt:10
|
||||
soInlineCallInLastStatementInInlineFunctionArgumentDex.kt:11
|
||||
soInlineCallInLastStatementInInlineFunctionArgumentDex.kt:12
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineFunDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineFunDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+4
-4
@@ -1,10 +1,10 @@
|
||||
LineBreakpoint created at soInlineFunDex.kt:7
|
||||
LineBreakpoint created at soInlineFunDex.kt:10
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineFunDex.kt:7
|
||||
soInlineFunDex.kt:9
|
||||
soInlineFunDex.kt:11
|
||||
soInlineFunDex.kt:10
|
||||
soInlineFunDex.kt:12
|
||||
soInlineFunDex.kt:14
|
||||
soInlineFunDex.kt:15
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineFunOnOneLineForDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineFunOnOneLineForDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
Vendored
+5
-5
@@ -1,10 +1,10 @@
|
||||
LineBreakpoint created at soInlineFunOnOneLineForDex.kt:17
|
||||
LineBreakpoint created at soInlineFunOnOneLineForDex.kt:20
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineFunOnOneLineForDex.kt:17
|
||||
soInlineFunOnOneLineForDex.kt:18
|
||||
soInlineFunOnOneLineForDex.kt:8
|
||||
soInlineFunOnOneLineForDex.kt:9
|
||||
soInlineFunOnOneLineForDex.kt:20
|
||||
soInlineFunOnOneLineForDex.kt:21
|
||||
soInlineFunOnOneLineForDex.kt:11
|
||||
soInlineFunOnOneLineForDex.kt:12
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineIterableFunDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineIterableFunDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+4
-4
@@ -1,10 +1,10 @@
|
||||
LineBreakpoint created at soInlineIterableFunDex.kt:5
|
||||
LineBreakpoint created at soInlineIterableFunDex.kt:8
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineIterableFunDex.kt:5
|
||||
soInlineIterableFunDex.kt:7
|
||||
soInlineIterableFunDex.kt:9
|
||||
soInlineIterableFunDex.kt:8
|
||||
soInlineIterableFunDex.kt:10
|
||||
soInlineIterableFunDex.kt:12
|
||||
soInlineIterableFunDex.kt:13
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineLibFunDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineLibFunDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
LineBreakpoint created at soInlineLibFunDex.kt:5
|
||||
LineBreakpoint created at soInlineLibFunDex.kt:8
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineLibFunDex.kt:5
|
||||
soInlineLibFunDex.kt:7
|
||||
soInlineLibFunDex.kt:9
|
||||
soInlineLibFunDex.kt:8
|
||||
soInlineLibFunDex.kt:10
|
||||
soInlineLibFunDex.kt:12
|
||||
soInlineLibFunDex.kt:13
|
||||
soInlineLibFunDex.kt:15
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineUnitFunDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineUnitFunDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at soInlineUnitFunDex.kt:10
|
||||
LineBreakpoint created at soInlineUnitFunDex.kt:13
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineUnitFunDex.kt:10
|
||||
soInlineUnitFunDex.kt:4
|
||||
soInlineUnitFunDex.kt:13
|
||||
soInlineUnitFunDex.kt:7
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: soInlineWhileConditionDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package soInlineWhileConditionDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
Vendored
+5
-5
@@ -1,12 +1,12 @@
|
||||
LineBreakpoint created at soInlineWhileConditionDex.kt:5
|
||||
LineBreakpoint created at soInlineWhileConditionDex.kt:8
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soInlineWhileConditionDex.kt:5
|
||||
soInlineWhileConditionDex.kt:7
|
||||
soInlineWhileConditionDex.kt:8
|
||||
soInlineWhileConditionDex.kt:7
|
||||
soInlineWhileConditionDex.kt:12
|
||||
soInlineWhileConditionDex.kt:10
|
||||
soInlineWhileConditionDex.kt:11
|
||||
soInlineWhileConditionDex.kt:10
|
||||
soInlineWhileConditionDex.kt:15
|
||||
soInlineWhileConditionDex.kt:18
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package soNonSuspendableSuspendCall
|
||||
|
||||
import forTests.builder
|
||||
|
||||
Vendored
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at soNonSuspendableSuspendCall.kt:18
|
||||
LineBreakpoint created at soNonSuspendableSuspendCall.kt:20
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soNonSuspendableSuspendCall.kt:18
|
||||
soNonSuspendableSuspendCall.kt:19
|
||||
soNonSuspendableSuspendCall.kt:20
|
||||
soNonSuspendableSuspendCall.kt:21
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package soSuspendableCallInEndOfFun
|
||||
|
||||
import forTests.WaitFinish
|
||||
|
||||
Vendored
+5
-5
@@ -1,11 +1,11 @@
|
||||
LineBreakpoint created at soSuspendableCallInEndOfFun.kt:27
|
||||
LineBreakpoint created at soSuspendableCallInEndOfFun.kt:29
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soSuspendableCallInEndOfFun.kt:27
|
||||
soSuspendableCallInEndOfFun.kt:15
|
||||
soSuspendableCallInEndOfFun.kt:14
|
||||
soSuspendableCallInEndOfFun.kt:29
|
||||
soSuspendableCallInEndOfFun.kt:17
|
||||
soSuspendableCallInEndOfFun.kt:16
|
||||
soSuspendableCallInEndOfFun.kt:35
|
||||
soSuspendableCallInEndOfFun.kt:18
|
||||
soSuspendableCallInEndOfFun.kt:37
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package soSuspendableCallInEndOfLambda
|
||||
|
||||
import forTests.builder
|
||||
|
||||
Vendored
+4
-4
@@ -1,9 +1,9 @@
|
||||
LineBreakpoint created at soSuspendableCallInEndOfLambda.kt:16
|
||||
LineBreakpoint created at soSuspendableCallInEndOfLambda.kt:18
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soSuspendableCallInEndOfLambda.kt:16
|
||||
soSuspendableCallInEndOfLambda.kt:13
|
||||
soSuspendableCallInEndOfLambda.kt:17
|
||||
soSuspendableCallInEndOfLambda.kt:18
|
||||
soSuspendableCallInEndOfLambda.kt:15
|
||||
soSuspendableCallInEndOfLambda.kt:19
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package soSuspendableCallInFun
|
||||
|
||||
import forTests.builder
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
LineBreakpoint created at soSuspendableCallInFun.kt:23
|
||||
LineBreakpoint created at soSuspendableCallInFun.kt:25
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soSuspendableCallInFun.kt:25
|
||||
soSuspendableCallInFun.kt:23
|
||||
soSuspendableCallInFun.kt:21
|
||||
soSuspendableCallInFun.kt:24
|
||||
soSuspendableCallInFun.kt:26
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package soSuspendableCallInFunFromOtherStepping
|
||||
|
||||
import forTests.builder
|
||||
|
||||
+4
-4
@@ -1,10 +1,10 @@
|
||||
LineBreakpoint created at soSuspendableCallInFunFromOtherStepping.kt:23
|
||||
LineBreakpoint created at soSuspendableCallInFunFromOtherStepping.kt:25
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soSuspendableCallInFunFromOtherStepping.kt:23
|
||||
soSuspendableCallInFunFromOtherStepping.kt:24
|
||||
soSuspendableCallInFunFromOtherStepping.kt:21
|
||||
soSuspendableCallInFunFromOtherStepping.kt:25
|
||||
soSuspendableCallInFunFromOtherStepping.kt:26
|
||||
soSuspendableCallInFunFromOtherStepping.kt:23
|
||||
soSuspendableCallInFunFromOtherStepping.kt:27
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package soSuspendableCallInLambda
|
||||
|
||||
import forTests.builder
|
||||
|
||||
Vendored
+3
-3
@@ -1,9 +1,9 @@
|
||||
LineBreakpoint created at soSuspendableCallInLambda.kt:15
|
||||
LineBreakpoint created at soSuspendableCallInLambda.kt:17
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
soSuspendableCallInLambda.kt:17
|
||||
soSuspendableCallInLambda.kt:15
|
||||
soSuspendableCallInLambda.kt:13
|
||||
soSuspendableCallInLambda.kt:16
|
||||
soSuspendableCallInLambda.kt:18
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package stopInAnonymousFunctionInInlinedCallWithCrossInlineDex
|
||||
|
||||
// KT-15282
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt:8
|
||||
LineBreakpoint created at stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt:11
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt:8
|
||||
stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt:19
|
||||
stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt:11
|
||||
stopInAnonymousFunctionInInlinedCallWithCrossInlineDex.kt:22
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package stopInCrossinlineInSuspend
|
||||
|
||||
import forTests.builder
|
||||
|
||||
Vendored
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInCrossinlineInSuspend.kt:12
|
||||
LineBreakpoint created at stopInCrossinlineInSuspend.kt:14
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInCrossinlineInSuspend.kt:12
|
||||
stopInCrossinlineInSuspend.kt:13
|
||||
stopInCrossinlineInSuspend.kt:14
|
||||
stopInCrossinlineInSuspend.kt:15
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// FILE: stopInInlineFunDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package stopInInlineFunDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInInlineFunDex.kt:10
|
||||
LineBreakpoint created at stopInInlineFunDex.kt:13
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInInlineFunDex.kt:10
|
||||
stopInInlineFunDex.kt:11
|
||||
stopInInlineFunDex.kt:13
|
||||
stopInInlineFunDex.kt:14
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
package stopInInlineInOtherFileDex
|
||||
|
||||
inline fun inlineFun() {
|
||||
var i = 1
|
||||
// Breakpoint 1
|
||||
i++
|
||||
i++
|
||||
}
|
||||
Vendored
+14
-1
@@ -1,7 +1,20 @@
|
||||
// FILE: stopInInlineInOtherFileDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package stopInInlineInOtherFileDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
inlineFun()
|
||||
}
|
||||
|
||||
// ADDITIONAL_BREAKPOINT: stopInInlineInOtherFileDex.Other.kt: Breakpoint 1
|
||||
// ADDITIONAL_BREAKPOINT: stopInInlineInOtherFileDex.Other.kt: Breakpoint 1
|
||||
|
||||
// FILE: stopInInlineInOtherFileDex.Other.kt
|
||||
package stopInInlineInOtherFileDex
|
||||
|
||||
inline fun inlineFun() {
|
||||
var i = 1
|
||||
// Breakpoint 1
|
||||
i++
|
||||
i++
|
||||
}
|
||||
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInInlineInOtherFileDex.Other.kt:6
|
||||
LineBreakpoint created at stopInInlineInOtherFileDex.Other.kt:7
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInInlineInOtherFileDex.Other.kt:6
|
||||
stopInInlineInOtherFileDex.Other.kt:7
|
||||
stopInInlineInOtherFileDex.Other.kt:8
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
package stopInInlineInOtherFileWithLambdaArgumentDex
|
||||
|
||||
inline fun inlineFun(a: () -> Unit) {
|
||||
a()
|
||||
// Breakpoint 1
|
||||
a()
|
||||
a()
|
||||
}
|
||||
+14
-1
@@ -1,3 +1,6 @@
|
||||
// FILE: stopInInlineInOtherFileWithLambdaArgumentDex.kt
|
||||
// EMULATE_DEX: true
|
||||
|
||||
package stopInInlineInOtherFileWithLambdaArgumentDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@@ -5,4 +8,14 @@ fun main(args: Array<String>) {
|
||||
val i = 1
|
||||
}
|
||||
|
||||
// ADDITIONAL_BREAKPOINT: stopInInlineInOtherFileWithLambdaArgumentDex.Other.kt: Breakpoint 1
|
||||
// ADDITIONAL_BREAKPOINT: stopInInlineInOtherFileWithLambdaArgumentDex.Other.kt: Breakpoint 1
|
||||
|
||||
// FILE: stopInInlineInOtherFileWithLambdaArgumentDex.Other.kt
|
||||
package stopInInlineInOtherFileWithLambdaArgumentDex
|
||||
|
||||
inline fun inlineFun(a: () -> Unit) {
|
||||
a()
|
||||
// Breakpoint 1
|
||||
a()
|
||||
a()
|
||||
}
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInInlineInOtherFileWithLambdaArgumentDex.Other.kt:6
|
||||
LineBreakpoint created at stopInInlineInOtherFileWithLambdaArgumentDex.Other.kt:7
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInInlineInOtherFileWithLambdaArgumentDex.Other.kt:6
|
||||
stopInInlineInOtherFileWithLambdaArgumentDex.Other.kt:7
|
||||
stopInInlineInOtherFileWithLambdaArgumentDex.kt:7
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Vendored
+14
@@ -1,3 +1,4 @@
|
||||
// FILE: stopInInlineUnderSamConversion.kt
|
||||
package stopInInlineUnderSamConversion
|
||||
|
||||
import forTests.SamConversion
|
||||
@@ -19,4 +20,17 @@ fun foo(a: Any) {}
|
||||
|
||||
inline fun inlineCall(f: () -> Unit) {
|
||||
f()
|
||||
}
|
||||
|
||||
// FILE: forTests/SamConversion.java
|
||||
package forTests;
|
||||
|
||||
public class SamConversion {
|
||||
public interface Runnable {
|
||||
public abstract void run();
|
||||
}
|
||||
|
||||
public static void doAction(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInInlineUnderSamConversion.kt:12
|
||||
LineBreakpoint created at stopInInlineUnderSamConversion.kt:13
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInInlineUnderSamConversion.kt:12
|
||||
stopInInlineUnderSamConversion.kt:13
|
||||
stopInInlineUnderSamConversion.kt:14
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral
|
||||
|
||||
import forTests.builder
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt:26
|
||||
LineBreakpoint created at stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt:28
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt:26
|
||||
stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt:27
|
||||
stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt:28
|
||||
stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt:29
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+4
-2
@@ -1,7 +1,9 @@
|
||||
package stopInLambdaInInlinedCallWithCrossInlineDex
|
||||
|
||||
// FILE: stopInLambdaInInlinedCallWithCrossInlineDex.kt
|
||||
// EMULATE_DEX: true
|
||||
// KT-15282
|
||||
|
||||
package stopInLambdaInInlinedCallWithCrossInlineDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
foo {
|
||||
//Breakpoint!
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInLambdaInInlinedCallWithCrossInlineDex.kt:8
|
||||
LineBreakpoint created at stopInLambdaInInlinedCallWithCrossInlineDex.kt:10
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInLambdaInInlinedCallWithCrossInlineDex.kt:8
|
||||
stopInLambdaInInlinedCallWithCrossInlineDex.kt:19
|
||||
stopInLambdaInInlinedCallWithCrossInlineDex.kt:10
|
||||
stopInLambdaInInlinedCallWithCrossInlineDex.kt:21
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package stopInSuspendFunctionWithSuspendPoints
|
||||
|
||||
import forTests.builder
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInSuspendFunctionWithSuspendPoints.kt:16
|
||||
LineBreakpoint created at stopInSuspendFunctionWithSuspendPoints.kt:18
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInSuspendFunctionWithSuspendPoints.kt:16
|
||||
stopInSuspendFunctionWithSuspendPoints.kt:17
|
||||
stopInSuspendFunctionWithSuspendPoints.kt:18
|
||||
stopInSuspendFunctionWithSuspendPoints.kt:19
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package stopInSuspendFunctionWithSuspendPointsInAnonymousObject
|
||||
|
||||
import forTests.builder
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt:20
|
||||
LineBreakpoint created at stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt:22
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt:20
|
||||
stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt:21
|
||||
stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt:22
|
||||
stopInSuspendFunctionWithSuspendPointsInAnonymousObject.kt:23
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure
|
||||
|
||||
import forTests.builder
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt:28
|
||||
LineBreakpoint created at stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt:30
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt:28
|
||||
stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt:29
|
||||
stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt:30
|
||||
stopInSuspendFunctionWithSuspendPointsInObjectLiteralInInlineCallWithClosure.kt:31
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ATTACH_LIBRARY: coroutines
|
||||
|
||||
package stopInSuspendFunctionWithoutSuspendPoints
|
||||
|
||||
import forTests.builder
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
LineBreakpoint created at stopInSuspendFunctionWithoutSuspendPoints.kt:11
|
||||
LineBreakpoint created at stopInSuspendFunctionWithoutSuspendPoints.kt:13
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInSuspendFunctionWithoutSuspendPoints.kt:11
|
||||
stopInSuspendFunctionWithoutSuspendPoints.kt:12
|
||||
stopInSuspendFunctionWithoutSuspendPoints.kt:13
|
||||
stopInSuspendFunctionWithoutSuspendPoints.kt:14
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
+15
-1
@@ -1,3 +1,4 @@
|
||||
// FILE: stopInWrongClass.kt
|
||||
package stopInWrongClass
|
||||
|
||||
class AA {
|
||||
@@ -18,4 +19,17 @@ fun main(args: Array<String>) {
|
||||
AA().other()
|
||||
}
|
||||
|
||||
// ADDITIONAL_BREAKPOINT: stopInWrongClass.Other.kt: Breakpoint 1
|
||||
// ADDITIONAL_BREAKPOINT: stopInWrongClass.Other.kt: Breakpoint 1
|
||||
|
||||
// FILE: stopInWrongClass.Other.kt
|
||||
package stopInWrongClass
|
||||
|
||||
class A {
|
||||
fun test() {
|
||||
// Breakpoint 1
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
LineBreakpoint created at stopInWrongClass.Other.kt:6
|
||||
LineBreakpoint created at stopInWrongClass.kt:11
|
||||
LineBreakpoint created at stopInWrongClass.Other.kt:7
|
||||
LineBreakpoint created at stopInWrongClass.kt:12
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stopInWrongClass.kt:11
|
||||
stopInWrongClass.kt:12
|
||||
stopInWrongClass.kt:13
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Reference in New Issue
Block a user