debugging in codelite - "GDB: Failed to set controlling terminal: Operation not permitted"

Solution 1:

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