I can launch gdb and attach it to the current process in 5 lines, hardly worth pulling a library dependency for.
Dependencies must be chosen and managed carefully. I'm not going to depend on something for something that's trivial; the time it takes for me to write it is less than it takes to do a license review and integrate it into my build system.