Optimize debug functions

Optimize debug functions to display recursively objects