Reputation: 3479
I would like to be able to capture the output of a user-defined command to a file. Is there a way to turn screen-logging on and off from within gdb?
Upvotes: 0
Views: 232
Reputation: 84159
(gdb) set logging on
See "2.4 Logging output" in GDB manual.
Upvotes: 1