Debugger: Support coroutineContext for suspend functions without suspend calls (KT-24829)
This commit is contained in:
idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/frame/coroutineContextWithoutSuspend.kt
Vendored
+15
@@ -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;
|
||||
+8
@@ -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
|
||||
Reference in New Issue
Block a user