diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestBase.kt b/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestBase.kt index dd938e4eb81..6abbf302b3a 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestBase.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestBase.kt @@ -120,9 +120,18 @@ abstract class KotlinDebuggerTestBase : KotlinDebuggerTestCase() { public fun doOnBreakpoint(action: SuspendContextImpl.() -> Unit) { super.onBreakpoint(SuspendContextRunnable { - initContexts(it) - it.printContext() - it.action() + try { + initContexts(it) + it.printContext() + it.action() + } + catch(e: AssertionError) { + throw e + } + catch(e: Throwable) { + e.printStackTrace() + resume(it) + } }) }