Page 1 of 1

Codelite 12.0, cannot debugging on Ubuntu 18.04

Posted: Sat Oct 13, 2018 6:49 pm
by allcoder
The problem is when I debug on the terminal, there are some strange things display:

&"warning: GDB: Failed to set controlling terminal: \344\270\215\345\205\201\350\256\270\347\232\204\346\223\215\344\275\234\n"

then the program did not stop at my break point, and the terminal is disappear

but my code run normally.

my code is just a hello world cpp. :shock:

Thanks.

Re: Codelite 12.0, cannot debugging on Ubuntu 18.04

Posted: Sat Oct 13, 2018 7:20 pm
by DavidGH
Hi,
there are some strange things display:
&"warning: GDB: Failed to set controlling terminal:
That always happens. It's unimportant: see e.g. this thread
the program did not stop at my break point, and the terminal is disappear but my code run normally.
Is this a debug build of your code? If not, it should be.

If so, what happens if you run the program that CodeLite built in gdb in a terminal? Does a breakpoint work there? Do you get any interesting error messages?

Regards,

David