Add mixin and function for map debug