Debug function simplified.

Simplification of the debug function.