Method for run time error check using dynamic patching and its device

PURPOSE: To provide a method and device for operating dynamic patching for run time error check by reading a program for error check in a memory, in which a module for debugging is present and testing and debugging the program which has been read. CONSTITUTION: A program image is read through an output and input device 304 in a program 307 (dbx) for debugging, stored in a memory 305, and an in-memory copy 308 of a program 302 is formed. A module 309 in the program 307 for debugging is called a run time check(RTC) module and processes a user interface, the printing of an error message, and the patching of the in- memory copy 308 of the program 302. Then, a shared library module 310 is loaded to the program 302, and the run time check is executed.