Debugger for inline functions: make sure that context is suspended

This commit is contained in:
Natalia Ukhorskaya
2015-09-04 20:18:12 +03:00
parent ff8b7b4276
commit e423e99253
@@ -45,7 +45,7 @@ public class KotlinSteppingCommandProvider: JvmSteppingCommandProvider() {
ignoreBreakpoints: Boolean,
stepSize: Int
): DebugProcessImpl.ResumeCommand? {
if (suspendContext == null) return null
if (suspendContext == null || suspendContext.isResumed) return null
val location = computeInManagerThread(suspendContext) {
it.frameProxy?.location()
@@ -80,7 +80,7 @@ public class KotlinSteppingCommandProvider: JvmSteppingCommandProvider() {
}
override fun getStepOutCommand(suspendContext: SuspendContextImpl?, stepSize: Int): DebugProcessImpl.ResumeCommand? {
if (suspendContext == null) return null
if (suspendContext == null || suspendContext.isResumed) return null
val location = computeInManagerThread(suspendContext) {
it.frameProxy?.location()