Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Unable to step into Qt source files with Qt Creator and CDB
Forum Updated to NodeBB v4.3 + New Features

Unable to step into Qt source files with Qt Creator and CDB

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sharevari
    wrote on last edited by
    #1

    I have just installed Qt with Qt Creator on Windows 7 x64 using the pre-compiled package “Qt 5.1.1 for Windows 32-bit (VS 2010, OpenGL, 504 MB)” because I have Visual Studio 2010 32-bit installed already.

    Qt Creator complained about missing debugger so I installed the Debugging Tools for Windows part of the Windows 7.1 SDK. This installed the x64 versions. I then restarted Creator and it now automatically detected CDB and my default Kit was complete.

    Starting a program in debug mode worked, but if I use Step Into on a line that calls into Qt code, it seems to behave as if I pressed Continue, i.e. the program just starts running again. Stepping into a function that's part of the project seems to work fine.

    I read somewhere that I needed the 32-bit CDB to work with a 32-bit Creator so I tracked this down and installed it. Created a new kit by cloning the default one and changed the location of CDB to point to the 32-bit one. But it had no effect on the debugging behaviour.

    I'm seeing some messages like the following in the debugger log:

    *** ERROR: Symbol file could not be found. Defaulted to export symbols for J:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl\bin\Qt5Widgetsd.dll -

    But I can't find any documentation about how to configure Qt Creator and CDB to find all the correct symbols and sources. The complete debugger log can be found here:

    https://dl.dropboxusercontent.com/u/4084480/qt_creator_cdb_debugger_log.txt

    This log corresponds to launching the Application example with a breakpoint on line 50 of main.cpp ("QApplication app(argc, argv);") and then pressing Step Into after it stopped. The app then resumed running.

    Any pointers appreciated.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sharevari
      wrote on last edited by
      #2

      I found the solution here in the workaround mentioned in the last post:

      http://qt-project.org/forums/viewthread/24430/#113139

      I also needed to add the following entry under Options > Debugger > CDB Paths > Symbol Paths:

      J:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl\lib

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved