IDEA-319871 Logging breakpoints make debugger evaluation hangs with "Collecting data..."

GitOrigin-RevId: e6681be4ca3f1419f7d6614ec85ae0e8e9c099df
This commit is contained in:
Egor Ushakov
2023-05-09 20:09:23 +02:00
committed by intellij-monorepo-bot
parent cc86fae107
commit a5ad1c6976
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.debugger.engine;
import com.intellij.debugger.engine.events.SuspendContextCommandImpl;
@@ -14,6 +14,8 @@ import org.jetbrains.annotations.Nullable;
import java.util.concurrent.TimeUnit;
public abstract class PossiblySyncCommand extends SuspendContextCommandImpl {
private int myRetries = Registry.intValue("debugger.sync.commands.max.retries");
protected PossiblySyncCommand(@Nullable SuspendContextImpl suspendContext) {
super(suspendContext);
}
@@ -29,7 +31,7 @@ public abstract class PossiblySyncCommand extends SuspendContextCommandImpl {
private boolean rescheduleIfNotIdle(@NotNull SuspendContextImpl suspendContext) {
int delay = ApplicationManager.getApplication().isUnitTestMode() ? -1 : Registry.intValue("debugger.sync.commands.reschedule.delay");
if (delay < 0) {
if (delay < 0 || --myRetries <= 0) {
return false;
}
DebugProcess process = suspendContext.getDebugProcess();

View File

@@ -603,6 +603,7 @@ debugger.auto.attach.from.console=false
debugger.auto.attach.from.console.description=Auto attach to all processes available for debug from the console output
debugger.preload.event.info=true
debugger.sync.commands.reschedule.delay=50
debugger.sync.commands.max.retries=5
debugger.attach.dialog.enabled=false
debugger.attach.dialog.enabled.description=Show new "Attach to Process" dialog instead of popup
debugger.inlayRunToCursor=false