mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 05:51:25 +07:00
IDEA-319871 Logging breakpoints make debugger evaluation hangs with "Collecting data..."
GitOrigin-RevId: e6681be4ca3f1419f7d6614ec85ae0e8e9c099df
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cc86fae107
commit
a5ad1c6976
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user