3

while debugging in codelite this error appears in the terminal :

enter image description here

could anyone help me solving this problem?

Yaron
  • 13,173

3 Answers3

4

As mentioned in codelite github

  1. This error message is harmless and can be ignored. If the terminal does not "pause" when your code terminates, you can enable this from Project Settings->General->Pause when execution ends

  2. To configure different temrinal, you do it from Ubuntu's terminal, like this:

    sudo update-alternatives --config x-terminal-emulator
    
muru
  • 197,895
  • 55
  • 485
  • 740
Yaron
  • 13,173
0

Found a potential work around:

https://rr-project.org/

A reversible debugger, and a drop-in replacement for gdb. Perhaps upon installation it won't have the same crap .gdbinit mechanism. I tried the above fixes and all fixes in other related threads to this problem and they don't work. It's obviously time to upgrade my debugging softare.

I will post back here if it works / doesn't work to fix this particular error.

0

I had the same error "GDB: Failed to set controlling terminal: Operation not permitted" in a Virtual Box share.

Move your files in a tmp folder outside the shared directory:

[user@localhost tmp]$ sudo cp -r /home/share/* .