Debugger: Support coroutineContext for suspend functions without suspend calls (KT-24829)

This commit is contained in:
Yan Zhulanow
2019-04-19 23:45:12 +03:00
parent b5f5149fc0
commit 35c63db9bc
5 changed files with 36 additions and 2 deletions
@@ -0,0 +1,15 @@
package coroutineContextWithoutSuspend
import kotlin.coroutines.coroutineContext
suspend fun main() {
foo()
}
private suspend fun foo() {
//Breakpoint!
val a = 5
}
// EXPRESSION: coroutineContext
// RESULT: instance of kotlin.coroutines.EmptyCoroutineContext(id=ID): Lkotlin/coroutines/EmptyCoroutineContext;
@@ -0,0 +1,8 @@
LineBreakpoint created at coroutineContextWithoutSuspend.kt:11
Run Java
Connected to the target VM
coroutineContextWithoutSuspend.kt:11
Compile bytecode for coroutineContext
Disconnected from the target VM
Process finished with exit code 0