On Linux gcc debugger gets stucked on &"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"

1 day ago 3
ARTICLE AD BOX

Previously I was able to debug c++ fine it would give this warning initially:

&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"

and then the program would run. I reinstalled linux and followed the intructions on the vs code website. When I click debug it shows the message and nothing else.

My code is also the default code in the vs code website: https://code.visualstudio.com/docs/cpp/config-linux

Also debugging worked fine on CLion

Read Entire Article