你要在ubuntu上面運行
就要找Linux可用的C/C++ IDE才對
google一下就有推薦的
https://www.tecmint.com/best-linux-ide-editors-source-code-editors/
我不知道你心中的 debug 是那種 level 的 debug
答案還是Visual Studio Code
參考看看合不合用
1.安裝 VS Code on Ubuntu
2.VS Code debug on Ubuntu