'Called as the GUI debugger is about to get context, and take control of the running program.'

def GUIAboutToBreak(self):

    self.GUICheckInit()
    self.RespondDebuggerState(DBGSTATE_BREAK)
    self.GUIAboutToInteract()
    if self.pumping:
        print '!!!    Already    pumping    -    outa    here'
        return
    self.pumping = 1
    win32ui.StartDebuggerPump()
    assert (not self.pumping), 'Should    not    be    pumping    once    the    pump    has    finished'
    if self.frameShutdown:
        win32ui.GetMainFrame().PostMessage(win32con.WM_CLOSE)
