User forums > Using Code::Blocks
Debugger doesn't work anymore
Curlz:
Terminal to launch console programs is konsole -e (seems to be still german) which is the standard terminal I got from kubuntu, but I think it was xterm some time ago. Shell to run commands in is /bin/sh -c.
After changing the "Terminal to launch console programs" back to xterm -T $TITLE -e, the debugger seems to be working again, giving "warning: GDB: Failed to set controlling terminal: Operation not permitted" before the program starts.
Strange.. I do remember running the debugger in the usual terminal. Possibly because locale was German for a while?
But it seems like the C::B debugger is working again. Thank you very much for your guidance!
oBFusCATed:
Interesting. What version of konsole/kde are you running?
Curlz:
KDE is Kubuntu 16.04 and all i found out about the terminal is that its called org.kde.konsole (https://konsole.kde.org/). (I also have debain-xterm and debain-uxterm, but usually prefer the other one.)
In the info center there is:
KDE Plasma version: 5.5.5
QT-version: 5.5.1
Kernel version: 4.4.0-31-generic
OS type: 64 bit
"konsole --version" furthermore gives
Qt: 5.5.1
KDE Frameworks: 5.18.0
Konsole: 15.12.3
Not sure if that is helpful so here is also the output of "cat /proc/version"
Linux version 4.4.0-31-generic (buildd@lgw01-16) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) ) #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016
hennep:
Yes this topic is more than 120 days old but it is the only hit I got, searching for "cb_gdb: During startup program exited with code 1".
Do we want to scatter information about a single problem in more than one topic?
I think not, so:
I had the same error today, using gnome-terminal as a console and also in my case I could revert to xterm to solve the error.
My xterm line that works:
xterm -sl 10000000 -geometry 100x109 -T $TITLE -e
The console line that used to work but failed today:
gnome-terminal --geometry=75x100 --title=$TITLE -x
I would really like to use another terminal than xterm because copying text from xterm really doesn't work for me.
Can we give this old problem another look? It seems that gnome terminal and konsole cannot find the proper tty device in the /dev/ directory
The part of the log where it fails with gnome-terminal:
--- Code: ---[debug]>>>>>>cb_gdb:
[debug]> tty /dev/?
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]/dev/?: No such file or directory.
[debug]During startup program exited with code 1.
[debug]Starting program: /home/(deleted)
[debug]>>>>>>cb_gdb:
During startup program exited with code 1.
[debug]> quit
--- End code ---
and when it succeeds with xterm:
--- Code: ---[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/1
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /home/(deleted)
[debug][Inferior 1 (process 4904) exited normally]
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 4904) exited normally]
[debug]> quit
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version