GDB Main launches GDB
(GDB) L is equivalent to list, starting from the first line to list the source code
(GDB) Break 16 set breakpoints, set breakpoints on line 16th of source code
(GDB) Break Func sets a breakpoint at the entrance of the Func function
(GDB) Info Break View breakpoint Information
(GDB) d [number] Deletes a breakpoint of the specified number or removes all breakpoints, and the breakpoint number increments from 1
(GDB) r Run command, Run command shorthand
(GDB) n single statement execution , next command shorthand, equivalent to step over, step tracking
(GDB) s equivalent to stepinto, single-step tracking into, if there are sub-functions, will enter the child function execution
(GDB) C continues to run, continue command shorthand
(GDB) P J Prints the value of the variable J, p is shorthand for print
(GDB) bt view function stack
(GDB) Finish Exit function
(GDB) Q exit GDB
(gdb) Help [command name]