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."); + } + } }