From 08451a7a8e70b7956e58eabecbd0a6bcf3579d59 Mon Sep 17 00:00:00 2001 From: Maria Sokolova Date: Wed, 19 Mar 2025 00:04:27 +0300 Subject: [PATCH] [debugger] Extended dump fix: create a SuspendContextCommand to call getAllItems when suspendContext is available. GitOrigin-RevId: a8a37d953a42168fdd79c3d30f2c5f7e12dca5d9 --- .../src/com/intellij/debugger/actions/ThreadDumpAction.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {