the invention provides a debugging method applicable for an embedded system . the system includes a processor , a main memory and a debugging interface . a debugging program is first provided in the main memory . a debugging interruption is subsequently triggered to cause the processor to read the debugging program from the main memory and execute the debugging program . after execution , an execution result of the debugging program is stored into the main memory . the execution result is read and output via the debugging interface for further analysis . because the architecture does not require a scan chain of itr 104 , the circuit requirement is reduced while performance is increased .