User forums > Using Code::Blocks

GDB debugger on linux mint

(1/1)

DaveG:
I've installed codeblocks on linux mint 20.1. Every time I try to debug a console application the console appears with the message "warning: GDB: failed to set controlling terminal: Operation not permitted". It sometimes displays the output I want and sometimes doesn't. Otherwise it appears to be debugging ok, shows the correct values etc in the watch window, but the console disappears as soon as the programme ends so you have to put in extra user input lines to see what's on screen. And it sometimes crashes completely and doesn't allow you to stop the programme or run it again without closing the project and reopening it. Anybody got any ideas what is happening?

oBFusCATed:
1. "warning: GDB: failed to set controlling terminal: Operation not permitted" - this is not a problem if you're not debugging some advanced terminal UI application as far as I know
2. "but the console disappears as soon as the programme ends" this is expected
3. "And it sometimes crashes completely" - what crashes?

It is hard to give answers when you report multiple problems in one go...

DaveG:
Thanks for your response to the first two issues, that's really useful information.

As for point 3, I'm not going to embarrass myself by admitting what was happening there  :-[

Navigation

[0] Message Index

Go to full version