Add small debug function to pretty-print buffers to output keys etc ... for debug only.