Both divein and my method to print doc of an object.