关于Ubuntu 12.04下code::blocks不能使用debug解决方法


问题描述:

系统:Ubuntu 12.04

code::blocks版本:10.05

问题现象:debug->start

之后出现:warning: GDB: Failed to set controlling terminal: Operation not permitted

断点设置无效

-g选项开了

解决方法:

1. Project->Properties...->Build Targets标签 ,选择 "GUI application"选项 。

2.Settings->Compiler and debugger。左边的面板上选择"Debugger settings" ,选择 "Display debugger's log"。

3.此时,再次运行debug->start,虽然不会弹出控制台调试窗口,但是在code::blocks编辑区下方的Debugger区,即可进行debug调试

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.bkjia.com/topicnews.aspx?tid=2

相关内容