简体   繁体   English

Qt Creator调试模式已消失

[英]Qt creator debug mode has disappeared

I was working with Qt both in debug mode and release mode before I update my packages by update manager in Ubuntu 12.04. 在Ubuntu 12.04中通过更新管理器更新软件包之前,我在调试模式和发布模式下都使用Qt。 After Updating I couldn't debug my code. 更新之后,我无法调试代码。 By looking at Project Mode in Qt, all I see is Release Mode: 通过查看Qt中的Project Mode,我看到的只是Release Mode:

  • One is " Qt 4.8.1 (System) Release " , 一个是“ Qt 4.8.1(System)Release ”,

  • and the other one is " Qt 4.8.1 in PATH (System) Release " 另一个是“ PATH(系统)版本中的Qt 4.8.1

I put the screen shot of my program in here What should I do ? 我将程序的屏幕截图放在这里,我该怎么办? Why debug mode has disappeared ? 为什么调试模式消失了? Does updating the packages caused this issue ? 更新软件包是否会导致此问题? I'm sure that I didn't change any Qt settings in the last week. 我确定上周我没有更改任何Qt设置。

Possibly your debug configuration got corrupted or removed. 您的调试配置可能已损坏或删除。 I'd suggest attempt to recreate it: 我建议尝试重新创建它:

  1. Open Projects tab (ctrl+5) 打开项目标签(Ctrl + 5)
  2. Select your project from the top projects lists 从顶部项目列表中选择您的项目
  3. Select Build & Run page 选择构建并运行页面
  4. Choose: Desktop/Build 选择: 桌面/构建
  5. --> Build Settings -> Edit build configuration: Debug --> Add -> 构建设置 -> 编辑构建配置:调试 -> 添加

Based on QtC 2.8, but should be similar on newer versions. 基于QtC 2.8,但在较新版本上应类似。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM