Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Debugging a Qt hello world application in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Debugging a Qt hello world application in Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 4 Posters 6.0k 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.
  • D Offline
    D Offline
    deepak_smcet
    wrote on last edited by
    #1

    hello all,

    i installed QT 4.7.4 version. then i created a hello world application. i selected the target as 'desktop.' and keep use shadow building unchecked.

    @
    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    QLabel *label = new QLabel("Hello Qt!");
    label->show();
    return app.exec();
    }
    @

    i build it and it works. i am able to run and see the label. however when i try to user start debugging menu following error message comes.


    Warning

    The preferred debugger engine for debugging binaries of type 'x86-windows-msvc2008-pe-32bit' is not available.
    The debugger engine 'Gdb engine' will be used as a fallback.
    Details: There is no CDB binary available for binaries in format 'x86-windows-msvc2008-pe-32bit'

    OK

    i checked the project settings. they are set to debug build.

    i have VS 2008 installed. i checked in docs that it needs debugging tools for windows. this is also installed on my system. i mean i could user windbg for crash dump. but since i also have Windows driver kit installed. the windbg is launched from 'C:\WinDDK\7600.16385.0\Debuggers' location. and i think QT uses %program files%\debugging tools for windows.

    how should i configure it so that i could debug it under QT?

    regards
    Deepak

    Edit: please use @-tags for code highlighting, Gerolf

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      So you are building with MSVC 2008 on Windows?

      If yes: Please install the Microsoft Debugging Tools.

      If no: Please tell us what you are actually building:-)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deepak_smcet
        wrote on last edited by
        #3

        hello Tobias,

        humm.. i had all the software installed. but i think QT only looks for \programe files\debugging tools for windows. and since i have latest WDK which setup debugging tools to its "C:\WinDDK\7600.16385.0\Debuggers" directry hence QT is unable to find it. just few minutes ago i had to uninstall WDK and then install the latest version of debugging tools and i was able to debug the hello world application. but here is the problem i use WDK as well. so is there any way to tell QT to look for the debugger in certain directory. so that i could have WDK installed as well?

        and yes i am building it on Microsoft windows. (vs2008, debugging tools and WDK"was" are installed)
        regards
        Deepak

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          <nitpick>Qt Creator does look for the debugging tools. Qt does not AFAICT.</nitpick>

          The fastest way to get Qt Creator to look for the debuggers in some new places: "File a bug report":http://bugreports.qt.nokia.com/ against Qt Creator:-)

          Some link to the WDK you are using might help in getting this resolved faster (if that is available to the public that is). Thanks!

          1 Reply Last reply
          0
          • D Offline
            D Offline
            deepak_smcet
            wrote on last edited by
            #5

            thanks Tobias Hunger,

            i have submitted the bug with all required info.

            regards
            Deepak

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              Can you report the bug ID here, please. This way other readers can easily find the issue. Thanks.

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • D Offline
                D Offline
                deepak_smcet
                wrote on last edited by
                #7

                here you go...
                https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6301

                thanks
                Deepak

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  eirikm
                  wrote on last edited by
                  #8

                  Hopefully this will be helpful: I tried installing the Microsoft Debugging Tools and it didn't work. I tried to look up the installation and found that the installer had only copied .msi files to my hard drive. After running the .msi it worked.

                  I bit strange since my expectation of an installer is that it actually installs software.

                  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