I am trying to use gdb to debug caffe. I prefer to use the tui mode because it allows me to see the whole source code rather than just a single line. But there is a problem: whenever the program caffe
outputs something on stderr
, the output distorts the tui interface. See the below snapshot for an illustration:
Is this an inherent limitation of gdb tui or is there any way to solve this problem?
As suggested by @ks1322 you can press Ctrl-L to refresh the screen. Or define a hook in .gdbinit to refresh after every next
command:
define hook-next
refresh
end
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