Question: what to do when you break your whole nail off?
Answer: Cover the nail with tape or an adhesive bandage until the nail has grown out enough to protect the finger or toe.
If you trim off the detached nail, you will have less worry about the nail catching and tearing.