Nitpicking
Nitpicking is the act of removing nits (the eggs of lice, generally head lice) from the host's hair. As the nits are cemented to individual hairs, they cannot be removed with most lice combs and, before modern chemical methods were invented, the only options were to shave all the host's hair or to pick them free one by one.
This is a slow and laborious process, as the root of each individual hair must be examined for infestation. It was largely abandoned as modern chemical methods became available; however, as lice populations can and do develop resistance, manual nitpicking is still often necessary.
Metaphor
As nitpicking inherently requires fastidious, meticulous attention to detail, the term has become appropriated to describe the practice of meticulously searching for minor, even trivial errors in detail (often referred to as "nits" as well). Thus "nitpicking" may be a pejorative term for troubleshooting, proofreading or similar, whose excess could be a psychopathologic form of criticising, see hypercriticism.