发明名称 Managing window focus while debugging a graphical user interface program
摘要 An embodiment of the present invention utilizes the abilities of an operating system to manage the window focus while debugging a graphical user interface program. In an example, a debugger program intercepts a breakpoint in the code of a graphical user interface computer program undergoing automated testing by a separate computer program. The debugger program instructs the operating system to save states of the window focus. Responsive to determining the breakpoint condition has ended, the debugger program instructs the operating system to restore saved states of the window that had focus prior to the breakpoint condition. Another embodiment of the present invention arranges similar window focus management where an operating system on its own is unable to save and restore states of the window that had focus prior to the breakpoint condition.
申请公布号 US9075915(B2) 申请公布日期 2015.07.07
申请号 US201314078661 申请日期 2013.11.13
申请人 International Business Machines Corporation 发明人 Krauss Kirk J.;Martineau James I.;McCollum Lorelei M.;McCowan Michael S.
分类号 G06F9/44;G06F11/36 主分类号 G06F9/44
代理机构 代理人 Hayes John W.
主权项 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.
地址 Armonk NY US