摘要 |
PURPOSE:To realize the direct use of a user program in a real operation state without sharing the program resources within a task, by using an interruption handler and an interruption processing table. CONSTITUTION:A debugger 3 is started and an interruption processing table 2 is initialized. A user program UP 1 to be debugged is started and a debugger task is suspended. The started UP 1 is moved to an interruption handler 4 via the table 2 with an interruption instruction put into the debugger 3. The handler 4 working as a UP task activates a debugger 3. The handler 4 working as a UP task activates a debugger task to wait for an input and suspends the UP task. When an executing request is applied for the UP 1, the control is shifted to the handler 4 working on the debugger task and the activated debugger task is suspended. The activated UP task is returned to the original UP task by the handler 4 via an interruption end instruction to restart its execution. In such a way, the user program can be used as it is in a real operation state.
|