diff --git a/java/debugger/impl/src/com/intellij/debugger/actions/ThreadDumpAction.kt b/java/debugger/impl/src/com/intellij/debugger/actions/ThreadDumpAction.kt index 1729ee3c3591..7494b968e3f3 100644 --- a/java/debugger/impl/src/com/intellij/debugger/actions/ThreadDumpAction.kt +++ b/java/debugger/impl/src/com/intellij/debugger/actions/ThreadDumpAction.kt @@ -122,7 +122,9 @@ class ThreadDumpAction : DumbAwareAction() { val timeout = Registry.intValue("debugger.thread.dump.suspension.timeout.ms", 500).milliseconds try { suspendAllAndEvaluate(context, timeout) { suspendContext -> - getAllItems(suspendContext) + withDebugContext(suspendContext) { + getAllItems(suspendContext) + } } } catch (_: TimeoutCancellationException) {