41
Help / Re: Debugging problem in a console application with ncurses library
« Last post by Bug Killer on June 21, 2025, 12:25:09 pm »The best way I know to debug a ncurses program is to start it with gdbserver then debug it with gdb as a remote target. So, I have the ncurses program on a terminal and debuging on another.
First terminal :
Second temminal :
First terminal :
Code
$ gdbserver myprogram localhost:1234
Code
$ gdb -tui myprogram
(gdb) target remote localhost:1234
(gdb)