void sendBreakpoints() { StringBuilder stringBuilder = new StringBuilder("{\"command\":\"").append(Command.SET_POINTS) .append("\", \"points\": ["); if (!getSession().areBreakpointsMuted()) { ApplicationManager.getApplication().runReadAction(() -> { int size = breakpoints.size();
private boolean areBreakpointsMuted() { return getXDebugSession() != null && getXDebugSession().areBreakpointsMuted(); }
private void verifyMutedIconSettingInUpdateBreakpointPresentation(Boolean muted) { XBreakpointManager breakpointManager = mock(XBreakpointManager.class); XDebugSession debugSession = mock(XDebugSession.class); when(debugSession.areBreakpointsMuted()).thenReturn(muted); CloudDebugProcess cloudDebugProcess = mockCloudDebugProcess(breakpointManager, debugSession); CloudLineBreakpoint breakpoint = mockCloudLineBreakpoint( cloudDebugProcess, "mock error message", mock(XLineBreakpointImpl.class)); cloudDebugProcess.updateBreakpointPresentation(breakpoint); verify(breakpoint).getSetIcon(muted); }