The GEF extension provides several features to the binary that are extremely helpful for debugging.
These are not all the commands that GEF provides. These are the ones I use most often in most debugging scenarios. For the complete list of commands, consult the GEF documentation.
I organize the commands into a few categories:
gdb commands.The easiest way to install GEF is through wget:
$ bash -c "$(wget https://gef.blah.cat/sh -O -)"
GEF is automatically loaded when you run gdb so no further action is required!