I've found these commands to be the most useful when using gdb:
- continue # execute code
- ^C # stop code get debugger prompt
- print # shows value
- list <line#> - shows code
- next - execute next line of code
- break <line#> - stop code ehre
- info breakpoints # shows breakpoints
- del <breakpoint#> # deletes breakpoints
- quit # exits GDB
(gdb) continue (gdb) ^C (gdb) print (gdb) list (gdb) next (gdb) break (gdb) info breakpoints (gdb) del (gdb) quit
Page last edited January 22, 2017
Text editor powered by tinymce.