XDebuggerState () { XDebuggerState state = myState; myBreakpointManager.saveState(state.getBreakpointManagerState()); myWatchesManager.saveState(state.getWatchesManagerState()); myPinToTopManager.saveState(state.getPinToTopManagerState()); return state; }