User forums > Help
Debugging problem in a console application with ncurses library. Old question..
kyokof:
I encounterd a problem which is similar to http://forums.codeblocks.org/index.php/topic,8810.0.html.
The demo programme is this
initscr();
printw("Hello World !!!");
refresh();
getch();
endwin();
I build it with -g and without any other parameters.
I can execute this with "run" and it works fine.
When I use "Debug", the console gives me "warning: GDB: Failed to set controlling terminal:" and no "hello world" appears.
If I use gdb without codeblocks, everything works fine.
My CB version is 10.5.
Fedora core version is 13.
GDB version is 7.1-30.
Thanks a lot..
oBFusCATed:
Please provide the debugger's debug log (settings -> compiler & debugger -> debugger -> show debuggers debug log)
Do you have xterm or something similar installed and configured (there is a config option for the terminal CB should use)?
kyokof:
debug log is here:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: /tmp/ConsoleTest/
Adding source dir: /tmp/ConsoleTest/
Adding file: bin/Debug/ConsoleTest
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) Fedora (7.1-30.fc13)
kyokof:
I have install xterm, gnome-terminal, terminator.
None of them could work properly under debug mode.
The parameters of "Terminal to launch console programs" is one of there:
gnome-terminal -t $TITLE -x
xterm -T $TITLE -e
terminator -T $TITLE -x
oBFusCATed:
Please reread my post, I want the other log :)
Navigation
[0] Message Index
[#] Next page
Go to full version