Implementation of the debug model