LINUX.ORG.RU

не работает отладка

 ,


0

1

Приветствую.

Не могу запустить отладку. Создал из шаблона «plain c project» , поставил breakpoint, нажал F5. Появилось окно xterm c заголовком «qtcreator_process_stub» с выполнившимся хеллоуворлдом. Отладка не подает признаков жизни - все кнопки управления неактивные, брекпоинт не подсвечен.

В консоли, где запущен qtcreator появляется:

*** UNEXPECTED STATE TRANSITION:  Debugger::Internal::GdbEngine(0x171c910, name = "GdbEngine") "State changed from EngineSetupRequested(1) to EngineShutdownRequested(20)."

Версии

$ qtcreator -version

Qt Creator 2.4.1 based on Qt 4.8.0

  AnalyzerBase 2.4.1 Code Analyzer Base Plugin
  Bazaar 2.4.1 Bazaar integration.
  BinEditor 2.4.1 Binary editor component.
  Bookmarks 2.4.1 Bookmarks in text editors.
  CMakeProjectManager 2.4.1 CMake support
  CVS 2.4.1 CVS integration.
  ClassView 2.4.1 Class View component.
  CodePaster 2.4.1 Codepaster plugin for pushing/fetching diff from server
  Core 2.4.1 The core plugin for the Qt IDE.
  CppEditor 2.4.1 C/C++ editor component.
  CppTools 2.4.1 Tools for analyzing C/C++ code.
  Debugger 2.4.1 Debugger integration.
  Designer 2.4.1 Qt Designer integration.
  FakeVim 2.4.1 VI-style keyboard navigation.
  Find 2.4.1 Provides the find widget and the hooks for find implementations.
  GLSLEditor 2.4.1 Editor for GLSL.
  GenericProjectManager 2.4.1 Generic support
  HelloWorld 2.4.1 Hello World sample plugin.
  Help 2.4.1 Help system.
  ImageViewer 2.4.1 Image Viewer component.
  Locator 2.4.1 Provides the Locator widget and the hooks for Locator filter implementations.
  Macros 2.4.1 Macros in text editors.
  Madde 2.4.1 Support for MADDE-based platforms, including Fremantle and MeeGo 1.2 Harmattan.
  Mercurial 2.4.1 Mercurial integration.
  Perforce 2.4.1 Perforce integration.
  ProjectExplorer 2.4.1 ProjectExplorer framework that can be extended with different kind of project types.
  QmlDesigner 2.4.1 Visual Designer for QML files.
  QmlJSEditor 2.4.1 Editor for QML and JavaScript.
  QmlJSInspector 2.4.1 Debugger for QML files
  QmlJSTools 2.4.1 Tools for analyzing Qml/JS code.
  QmlProfiler 2.4.1 Qml Profiler Plugin
  QmlProjectManager 2.4.1 Qt Quick support
  Qt4ProjectManager 2.4.1 Provides project type for Qt 4 pro files and tools.
  QtSupport 2.4.1 Provides support code for build systems.
  RemoteLinux 2.4.1 Support for deployment to and execution on a remote Linux host.
  ResourceEditor 2.4.1 Editor for qrc files.
  ScmGit 2.4.1 Git integration.
  Subversion 2.4.1 Subversion integration.
  TaskList 2.4.1 Use .tasks-files to populate the Issues view.
  TextEditor 2.4.1 Text editor framework and the implementation of the basic text editor.
  UpdateInfo 2.4.1 Displays Update-Infos for Qt Installer Framework-based Updaters.
  VCSBase 2.4.1 Version Control System Base Plugin
  Valgrind 2.4.1 Valgrind Plugin
  Welcome 2.4.1 Default Welcome Screen Plugin

$ gdb -v
GNU gdb (GDB) Fedora (7.4.50.20120120-33.fc17)

Версия 2.3.1 в прошлой федоре ведет себя еще хуже - не показывает никаких ошибок.

На официальном сайте пишут всё больше про возможности и оффтопик - ничего полезного.

Оно вобще работает хоть у кого-то? Есть смысл пытаться переходить на qtcreator с eclipse или еще рано?


В Debian/Ubuntu все работает.

Jetty ★★★★★
()

Выключи запуск с терминала в свойствах проекта.

zJes ★★
()

CONFIG += debug

В pro файл.

ymuv ★★★★
()

zJes - после включения появилось уведомление, что это не Debug build.

ymuv - не сработало, зато в свойствах проекта сменил Release на Debug - вот это помогло.

Благодарю всех, разобрался. Совместил оба совета.

Странно, что новый проект создается как «Release».

fjoe
() автор топика

осиль консольный gdb и больше никогда не парься по этому поводу .

nanoolinux ★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.