(CoroutineDebugger) Group coroutines by dispatcher

Kotlin Script support added.

 #KT-37917 fixed
This commit is contained in:
Vladimir Ilmov
2020-03-23 19:12:55 +01:00
parent 7aa9b81604
commit 38ec388429
29 changed files with 862 additions and 430 deletions
@@ -128,6 +128,9 @@ sealed class BaseExecutionContext(val evaluationContext: EvaluationContextImpl)
fun findClassSafe(className: String): ClassType? =
hopelessAware { findClass(className) as? ClassType }
fun invokeMethodSafe(type: ClassType, method: Method, args: List<Value?>): Value? {
return hopelessAware { debugProcess.invokeMethod(evaluationContext, type, method, args) }
}
fun invokeMethodAsString(instance: ObjectReference, methodName: String): String? =
(findAndInvoke(instance, instance.referenceType(), methodName, "()Ljava/lang/String;") as? StringReference)?.value() ?: null