Linux debugging:
-g compile a makefile plus ----
Into the executable program files folder
1, gdb TestLinux (gdb entering mode)
2, l (see the current code)
3, b linenumber (set a breakpoint)
4, r (execution)
5, s (step execution, function entry)
6, a carriage return (repeat a command)
7, print variable_name (see the changes in a variable)
8, whatis variable_name (see variable type)
9, (the stack view function) bt
10, finish (end debugging)
11, n (single-step)
12, q (quit debug)