I’m using GDB to debug some of my C applications. What I currently do is load the target application, set a breakpoint on line 30 and run it.
I would like to make GDB display the output of my own application in a new terminal window while I’m still able to control the breakpoint handling via the GDB terminal window, but I couldn’t seem to find a proper switch. Is there any way making GDB display my program’s output in its own window?
The best way I know is to redirect the output of the program to a file, and then
tail -fthat file in another terminal. Redirection is done withrun > filename, as documented in the GDB documentation.