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

Linux大全评论2.2K views阅读模式

问题描述:

系统: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"选项 。

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

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

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

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

企鹅博客
  • 本文由 发表于 2019年9月9日 06:16:28
  • 转载请务必保留本文链接:https://www.qieseo.com/174684.html

发表评论