Move debugger test data to the new location
This commit is contained in:
Vendored
+40
@@ -0,0 +1,40 @@
|
||||
package sofSuspendableCallInFun
|
||||
|
||||
import forTests.builder
|
||||
import forTests.WaitFinish
|
||||
import kotlin.coroutines.Continuation
|
||||
import kotlin.coroutines.*
|
||||
|
||||
private fun foo(a: Any) {}
|
||||
|
||||
val waiter = WaitFinish()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
builder {
|
||||
inFun()
|
||||
}
|
||||
|
||||
foo("Main end")
|
||||
waiter.waitEnd()
|
||||
}
|
||||
|
||||
suspend fun inFun() {
|
||||
//Breakpoint!
|
||||
run()
|
||||
foo("End")
|
||||
}
|
||||
|
||||
suspend fun run() {
|
||||
//Breakpoint!
|
||||
foo("This breakpoint should be skipped")
|
||||
|
||||
suspendCoroutine { cont: Continuation<Unit> ->
|
||||
Thread {
|
||||
Thread.sleep(10)
|
||||
cont.resume(Unit)
|
||||
waiter.finish()
|
||||
}.start()
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_OVER_FORCE: 2
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
LineBreakpoint created at sofSuspendableCallInFun.kt:23
|
||||
LineBreakpoint created at sofSuspendableCallInFun.kt:29
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
sofSuspendableCallInFun.kt:23
|
||||
sofSuspendableCallInFun.kt:21
|
||||
sofSuspendableCallInFun.kt:24
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user