A debugger is a program that runs another program under its control: it can stop it, execute it one line at a time, show and change its variables, and print the chain of active calls. A breakpoint is a place in the program, usually a line, where the debugger stops it before executing that place.
-g -O0, so that each line of the source maps to machine instructions in order.