diff --git a/platform/platform-resources/src/idea/XDebuggerActions.xml b/platform/platform-resources/src/idea/XDebuggerActions.xml
index 82df09d72b53..2b095a743f12 100644
--- a/platform/platform-resources/src/idea/XDebuggerActions.xml
+++ b/platform/platform-resources/src/idea/XDebuggerActions.xml
@@ -194,6 +194,9 @@
+
+
diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/XDebuggerActions.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/XDebuggerActions.java
index 06ca4a6b7a11..272811d5d1f8 100644
--- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/XDebuggerActions.java
+++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/XDebuggerActions.java
@@ -41,6 +41,7 @@ public interface XDebuggerActions {
@NonNls String WATCHES_INLINE_POPUP_GROUP = "XDebugger.Watches.Inline.Popup";
@NonNls String WATCHES_TREE_TOOLBAR_GROUP = "XDebugger.Watches.Tree.Toolbar";
@NonNls String FRAMES_TREE_POPUP_GROUP = "XDebugger.Frames.Tree.Popup";
+ @NonNls String FRAMES_TREE_POPUP_GROUP_FRONTEND = "XDebugger.Frames.Tree.Popup.Frontend";
@NonNls String THREADS_TREE_POPUP_GROUP = "XDebugger.Threads.Tree.Popup";
@NonNls String FRAMES_TOP_TOOLBAR_GROUP = "XDebugger.Frames.TopToolbar";
diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XFramesView.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XFramesView.java
index 530cd22de7e7..78741dab77fa 100644
--- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XFramesView.java
+++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XFramesView.java
@@ -64,6 +64,8 @@ import java.util.*;
import java.util.List;
import java.util.function.Consumer;
+import static com.intellij.xdebugger.impl.actions.FrontendDebuggerActionsKt.areFrontendDebuggerActionsEnabled;
+
@ApiStatus.Internal
public final class XFramesView extends XDebugView {
private static final Logger LOG = Logger.getInstance(XFramesView.class);
@@ -155,7 +157,10 @@ public final class XFramesView extends XDebugView {
int i = myFramesList.locationToIndex(new Point(x, y));
if (i != -1) myFramesList.selectFrame(i);
ActionManager actionManager = ActionManager.getInstance();
- ActionGroup group = (ActionGroup)actionManager.getAction(XDebuggerActions.FRAMES_TREE_POPUP_GROUP);
+ String actionGroup = areFrontendDebuggerActionsEnabled()
+ ? XDebuggerActions.FRAMES_TREE_POPUP_GROUP_FRONTEND
+ : XDebuggerActions.FRAMES_TREE_POPUP_GROUP;
+ ActionGroup group = (ActionGroup)actionManager.getAction(actionGroup);
actionManager.createActionPopupMenu("XDebuggerFramesList", group).getComponent().show(comp, x, y);
}
});