关于Ubuntu12.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调试

posted @ 2014-04-12 15:39  小小鑫  阅读(659)  评论(0编辑  收藏  举报