Add back removed debug metadata

This is what the old debug function was trying to output (it used the manually created bodyLen)