published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted at 08. Jul '20
Debugging With GDB
Run program with arguments:
gdb --args getent passwd xxx
break function_name() start continue/c (to next breakpoint) next/n (next line) enter (repeat the last command)
-g -ggdb -O0 to have debug symbols and more.