next index prev

basic gdb commands:

run     :     executes the program from the beginning, you can use: run < file_in > file_out to redirect I/O
                 for the program being executed.

break  :     Used to set break points can be used in many ways:
                break line_number,
                break function_name
                break file_name:line_number
                break class::method

next     :   proceed one command line, do not enter function calls.

step     :    proceed one command line, step into function calls if necessary.

cont     :    continue until next breakpoint.

where :     display call stack.

print    :   print a variable(expression), used : "print expression"

up/down : move up and down in the call stack allows you to examine local variables of previous functions.

and many more (see help)

next index prev