Shared pointer: add doc & debug define