Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

issue with debugged application output in gdb

Tags:

debugging

gdb

I am doing my first steps with GDB in TUI mode.

During the debug session I see that each line outputted to console occurs in a single line (in the picture you see 222222 highlighted in red). It is like having an output pane of one single line.

On top of that, each \n doesn't cleanup that line so all the strings do overwrite each other making my output very confusing.

Can you help me a bit with this issue or point me to some key command to look for in order to have a clean output?

I also highlighted another area (in the picture 1111111) because the first string is outputted there and then all other on the frame of the source code window.

alt text

like image 489
Abruzzo Forte e Gentile Avatar asked Oct 26 '10 06:10

Abruzzo Forte e Gentile


1 Answers

You can always refresh tui screeen every time your program outputs something with Ctrl+L key binding. Or you can temporarily swith to normal mode, step and watch program output and switch back to tui mode (Ctrl+X A). See all key bindings here.

like image 160
ks1322 Avatar answered Oct 03 '22 00:10

ks1322