From 065a9e64bdf3099780c401ba43f90c36277c4d6d Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Wed, 21 Oct 2009 21:55:43 +0400 Subject: [PATCH] do not assert isResumed if disconnected from VM --- .../com/intellij/debugger/engine/SuspendContextImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java b/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java index e6d3255f3aef..0222caccfa4c 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java @@ -104,7 +104,11 @@ public abstract class SuspendContextImpl implements SuspendContext { } private void assertNotResumed() { - LOG.assertTrue(!myIsResumed, "Cannot access SuspendContext. SuspendContext is resumed."); + if (myIsResumed) { + if (myDebugProcess.isAttached()) { + LOG.assertTrue(false, "Cannot access SuspendContext. SuspendContext is resumed."); + } + } }