From 83c9f3c8814f2d1e404b72ca2c22d5c4e6eacc46 Mon Sep 17 00:00:00 2001 From: Maksim Zuev Date: Fri, 30 Jan 2026 17:14:40 +0100 Subject: [PATCH] [debugger] IDEA-385233 Fix throttled labels GitOrigin-RevId: fdf4f32d96371bb03b8965d06b17383a43578386 --- .../intellij/debugger/engine/AsyncStacksUtils.java | 14 +++----------- .../messages/JavaDebuggerBundle.properties | 6 +++--- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/AsyncStacksUtils.java b/java/debugger/impl/src/com/intellij/debugger/engine/AsyncStacksUtils.java index 91a01573060d..198ed4bf234a 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/AsyncStacksUtils.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/AsyncStacksUtils.java @@ -19,6 +19,7 @@ import com.intellij.debugger.ui.breakpoints.StackCapturingLineBreakpoint; import com.intellij.execution.JavaExecutionUtil; import com.intellij.execution.configurations.JavaParameters; import com.intellij.execution.configurations.ParametersList; +import com.intellij.icons.AllIcons; import com.intellij.ide.plugins.PluginManagerCore; import com.intellij.ide.plugins.PluginManagerCoreKt; import com.intellij.idea.AppMode; @@ -562,11 +563,12 @@ public final class AsyncStacksUtils { } } - private static class ThrottledFrame extends XStackFrame implements XStackFrameWithSeparatorAbove, JVMStackFrameInfoProvider { + private static class ThrottledFrame extends XStackFrame implements XStackFrameWithSeparatorAbove { private boolean myWithSeparator; @Override public void customizePresentation(@NotNull ColoredTextContainer component) { + component.setIcon(AllIcons.Empty); component.append(JavaDebuggerBundle.message("async.stack.throttled.frame.label"), SimpleTextAttributes.GRAY_ITALIC_ATTRIBUTES); } @@ -591,15 +593,5 @@ public final class AsyncStacksUtils { public void setWithSeparator(boolean withSeparator) { myWithSeparator = withSeparator; } - - @Override - public boolean isSynthetic() { - return true; - } - - @Override - public boolean isInLibraryContent() { - return false; - } } } diff --git a/java/debugger/openapi/resources/messages/JavaDebuggerBundle.properties b/java/debugger/openapi/resources/messages/JavaDebuggerBundle.properties index 145e4020cef8..e6df0877f600 100644 --- a/java/debugger/openapi/resources/messages/JavaDebuggerBundle.properties +++ b/java/debugger/openapi/resources/messages/JavaDebuggerBundle.properties @@ -555,9 +555,9 @@ column.name.shallow.size=Shallow Size column.name.retained.size=Retained Size stepping.filter.real.thread.name=thread {0} debugger.variables.not.available.in.async=Variables are not available for async stack frames -async.stack.throttled.frame.label=Async frames are omitted -async.stack.throttled.frame.info=Async stack trace was not collected due to performance overhead. You can disable throttling in -label.capture.configurable.throttling=Throttle async stack traces collection on significant overhead +async.stack.throttled.frame.label=Could not capture +async.stack.throttled.frame.info=Async stack trace was not collected for performance reasons. You can disable throttling in +label.capture.configurable.throttling=Throttle async stack traces on significant overhead exception=Exception ref=Ref thread.dump.during.previous.dump.evaluation.warning=Evaluation of the previous dump is still in progress. Java platform thread dump is taken.