[debugger] Fixed disable/enable logic for breakpoint instrumentation

IDEA-370744

GitOrigin-RevId: 7ef314eacb2aacc162d0c6de5ac1709c958e9a8f
This commit is contained in:
Alexey.Merkulov
2026-02-11 20:28:37 +00:00
committed by intellij-monorepo-bot
parent bf4af1f8a4
commit 6fd638a53c
2 changed files with 7 additions and 1 deletions
@@ -531,4 +531,9 @@ public class RequestManagerImpl extends DebugProcessAdapterImpl implements Reque
public @Nullable InstrumentationBreakpointState getInstrumentationInfo(@NotNull Requestor requestor) {
return myInstrumentationInfo.get(requestor);
}
@ApiStatus.Internal
public void deleteInstrumentationInfoFor(@NotNull Requestor requestor) {
myInstrumentationInfo.remove(requestor);
}
}
@@ -138,7 +138,8 @@ public class LineBreakpoint<P extends JavaBreakpointProperties> extends Breakpoi
if (myXBreakpoint instanceof XBreakpointBase<?, ?, ?> xBreakpointBase && shouldInstrumentBreakpoint(xBreakpointBase)) {
InstrumentationBreakpointState instrumentationBreakpointState = debugProcess.getRequestsManager().getInstrumentationInfo(this);
if (instrumentationBreakpointState != null && instrumentationBreakpointState.isInstrumentationModeEnabled()) {
if (instrumentationBreakpointState != null) {
instrumentationBreakpointState.updateInstrumentationModeEnabled(debugProcess.getRequestsManager(), true);
return;
}
}