A debugging subsystem for testing a system-on-a-chip includes an embedded processor
and memory and includes at least one debugging subblock monitors a bus between
the processor and the memory to detect selected triggering events, counts the number
of triggering events detected and when the number of triggering events reaches
a predetermined threshold, generates a debugging signal.