gdbncursescgdb

Using cgdb for a ncurses c application


When I debug a ncurses appplication I usually do the following:

gdb --tty=/dev/ttys000 ...

This will then make the ncurses application to run in a different terminal than the one gdb runs in.

Recently I discovered cgdb and I very much like it. Unfortunately it does not seem to respect the --tty option.

Are there any other way of doing this? How do the cgdb people debug cgdb :) ?

Thanks.


Solution

  • Yes, you can use tty command the same way as --tty option, either in gdb or in cgdb. See Debugging Ncurses Programs. Also you can use gdb in tui mode. It is much like cgdb.