I noticed that in GDB, when issuing commands with long output like info variables
, the output is displayed one page at time, pressing enter
to go down and q
to quit.
Is it possible to replace the default pager with another one, such as less
, so that I can navigate up and down, quitting, searching, etc?
Is it possible to replace the default pager with another one
No: GDB doesn't call into external program to display the output, it simply pauses the output every screenfull (and you can make it not pause by set height 0
).
In addtion to running inside emacs
, you could also use screen
or tmux
(learning them will generally help you in a lot of other situations), or ask GDB to log output (set logging on
) and then search in gdb.txt
with any $PAGER
you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With