The aim of this paper is to suggest a simple approach to the fault detection problem and to offer some hints to design debug features in real time embedded systems to ease up the maintenance phase. Topics of the paper include: Fault localization: which elements are necessary to isolate a fault, how to collect useful data from a fault, how to trace runtime events, and post mortem debug and diagnostics.