主权项 |
1. A method for managing window focus while debugging a computer program, the method comprising:
intercepting, by one or more processors, a breakpoint in program code of a computer program; determining, by one or more processors, that operation of the computer program has reached the intercepted breakpoint; responsive to intercepting the breakpoint in program code of the computer program, saving, by one or more processors, the state of window focus, wherein the state of window focus includes at least a graphical user interface of the computer program; pausing, by one or more processors, operation of the computer program; diverting, by one or more processors, the window focus to a debugger interface; responsive to receiving an indication to resume operation of the computer program, restoring, by one or more processors, the saved state of the window focus; and reverting, by one or more processors, the computer program automatically to a previous state. |