Ross Mohn wrote:
1. What debugger do you use for C programming?

gdb, sometimes cgdb [1].

2. What debugger do you use for Curses C programming?

gdb.

Usually input and output for gdb and your program is mixed in one terminal, but you can also use a second one. Have a look at the tty command in gdb.

Here is a quick HOWTO:
1) Open a second terminal, get the tty device:
$ tty
/dev/ttys007

2) Put this terminal to sleep so nothing else will happen while debugging:
$ sleep 1000000

3) In gdb, set the tty to the previously obtained tty device:
(gdb) tty /dev/ttys007

4) Run the program as usual:
(gdb) r

Input and output will happen on the second terminal, while you can easily debug in gdb as usual.

HTH,
Rainer

[1] http://cgdb.sourceforge.net/

Reply via email to