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. Debugger not configured correctly
QtWS25 Last Chance

Debugger not configured correctly

Scheduled Pinned Locked Moved Qt Creator and other tools
31 Posts 11 Posters 28.3k Views
  • 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.
  • P Offline
    P Offline
    PBarnes
    wrote on last edited by
    #1

    I have been google searching the solution to my issue for the past day and a half or so and nothing has worked.
    I am simply trying to debug a very basic C++ program in Qt Gui App.

    The code compiles fine (it's only 5 lines atm) but when trying to debug an issue I get the following error message:
    "None of the debugger engines 'Cdb engine, Gdb engine' capable of debugging binaries of the type 'x86-windows-msvc2008-pe032bit' is configured correctly."

    I have installed the SDK and MinGW (if those are even solutions).
    I have reinstalled QtCreator.
    I have installed .net Framework 4.
    I have installed Debugging tools for Win32.

    Granted these things might not be in the correct solution path for my issue, but I have all but exhausted my options here.

    Any help would be incredible.
    Thank you so much for taking the time to read.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PBarnes
      wrote on last edited by
      #2

      btw I am using Windows 7 64bit.
      Is that what is causing my issues?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PBarnes
        wrote on last edited by
        #3

        Trying uninstalling and reinstalling the full SDK version .
        Loaded up QT Creator and started a QT widget app.

        Same error when I try to debug.
        Quite frustrating.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Welcome to devnet

          If I understand your problem correctly, you are using qt creator and you like to debug.

          Are you intending to use msvc2008 toolchain for compilation and debugging?
          Or, do you want to use mingw as a tool chain?

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PBarnes
            wrote on last edited by
            #5

            Pardon my complete lack of understanding but as long as I can step through the application and debug issues, it does not matter to me which tool chain I use.

            Thank you very much for responding btw.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              In principle you should be able to step through your application with the debugger. However, you cannot mix to my understanding.

              I try to get some facts at the moment. Those might be a bit hidden between the lines. In addiiton I am most likely not the right person to answer, especially if it is going to the details of qt creator under windows.

              If you start with Qt and Qt creator I would start to use it with MinGW under windows, because that is the default. You may use other tool chains such as the compiler of msvc2008. But this may need some additional hand-tuning.

              You may use also Qt completely with msvc2008 (IDE and compiler).

              Your error message looks like you are using msvc for compilation, but the debugger is not setup properly. I am wondering if you are aware that you compile with msvc2008 and that this is your intension?

              One additional note: you have probably the wrong group forum for your issue. "Tools" would have been the place to raise issues when working qt creator. Unfortunately, I cannot reassign your post. :-(

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • EddyE Offline
                EddyE Offline
                Eddy
                wrote on last edited by
                #7

                I moved it to the tools subforum as requested.

                Qt Certified Specialist
                www.edalsolutions.be

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #8

                  [quote author="Eddy" date="1323450777"]I moved it to the tools subforum as requested.[/quote]

                  Wow, that was really fast. Did you even read the email I was sending to you?
                  Super, Eddy, thanks.

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  0
                  • EddyE Offline
                    EddyE Offline
                    Eddy
                    wrote on last edited by
                    #9

                    You're welcome.

                    I didn't see your email untill now. Just trying to read everything interesting!

                    Big brother is watching you ;)

                    Qt Certified Specialist
                    www.edalsolutions.be

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      PBarnes
                      wrote on last edited by
                      #10

                      [quote author="koahnig" date="1323450422"]
                      If you start with Qt and Qt creator I would start to use it with MinGW under windows, because that is the default. You may use other tool chains such as the compiler of msvc2008. But this may need some additional hand-tuning.

                      You may use also Qt completely with msvc2008 (IDE and compiler).

                      Your error message looks like you are using msvc for compilation, but the debugger is not setup properly. I am wondering if you are aware that you compile with msvc2008 and that this is your intension?
                      [/quote]

                      I am not aware it is trying to compile with msvc2008. Nor is that necessarily my intention. I am not aware of differences nor completely knowlegable about the two compiler options. And to be honest, their differences matter very little to me. Being able to compile and debug by stepping through code is the main goal, so whatever compiler it takes to do so is the goal.

                      If you say that you would suggest using mingw, then I will do that.
                      How would I go about setting that up?
                      Obviously this does not come as an "out-of-the-box" setup option. Since I have installed the SDK and done nothing else except create a barebones QtWidget App. What are the steps I need to take to use that MinGW debugger?

                      Thank you again, very much, for helping with my issue.

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        PBarnes
                        wrote on last edited by
                        #11

                        Took a screenshot of my toolchains window.
                        Hopefully this helps, but maybe not

                        !http://i.imgur.com/h8Eho.jpg!

                        [EDIT: fixed image link, Volker]

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          koahnig
                          wrote on last edited by
                          #12

                          [quote author="PBarnes" date="1323460326"]Took a screenshot of my toolchains window.
                          Hopefully this helps, but maybe not
                          [/quote]
                          The link to your picture is broken. You need to add a something in the round parenthesis.

                          Do really have mingw installed? I would have assumed that it will show up here. Try to add mingw as a tool chain.

                          I am little help here. I use Qt with msvc2005 on windows. Qt creator I am using occasionally on Linux.

                          Do you have a licensed version of msvc2008? If so, I would recommend to use Qt with msvc2008 then. Especially if you are already familiar with msvc IDE.
                          You can download the Qt binaries from "here":http://qt.nokia.com/downloads/windows-cpp-vs2008

                          Vote the answer(s) that helped you to solve your issue(s)

                          1 Reply Last reply
                          0
                          • P Offline
                            P Offline
                            PBarnes
                            wrote on last edited by
                            #13

                            Thank you for all of the help so far.
                            I do not have a full licensed version of Visual Studio installed so that could be out of the question.

                            I went back to make sure I had MinGW installed, which I do.
                            It was, however, not automatically added to the toolchain list.
                            I manually added it and pointed it to the C++ .exe in the MinGW folder.
                            I have added the screenshot below of that screen, please let me know if something looks incorrect.

                            !http://i.imgur.com/tdKB3.jpg!

                            I then went back to creator, created a brand new Qt widget GUI app, added the line "int x = 0;" into the main.cpp, put a breakpoint on that line, and clicked Debug.
                            I received the error message shown below...

                            !http://i.imgur.com/Y3srz.jpg!

                            When I click OK that on that popup box, it appears that I go back to debugging. The program is not reaching my breakpoint yet but that could be a result of how the code works.

                            Is there a way to fix this error message? Will this impact my debugging other than the nuisane of having this error pop up every time I go to debug.

                            Thank you again for all of the information.

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              koahnig
                              wrote on last edited by
                              #14

                              Your image links are broken.

                              Vote the answer(s) that helped you to solve your issue(s)

                              1 Reply Last reply
                              0
                              • P Offline
                                P Offline
                                PBarnes
                                wrote on last edited by
                                #15

                                [quote author="koahnig" date="1323703676"]Your image links are broken. [/quote]
                                Not my day I guess.
                                The images look fine to me, not sure what the problem is.
                                When a moderator changed my earlier post to show those image links, I just edited those posts and copy/pasted what the moderator did to fix my images.

                                It should be working just fine.

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  koahnig
                                  wrote on last edited by
                                  #16

                                  Looks a bit like an internet download issue then. Just copied one of the links and tried access directly, but this takes forever. Probably, one has to be bit more patient.

                                  Vote the answer(s) that helped you to solve your issue(s)

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    muthu005
                                    wrote on last edited by
                                    #17

                                    Me too facing the same problem, i am unable to debug my application.

                                    1 Reply Last reply
                                    0
                                    • C Offline
                                      C Offline
                                      Chris H
                                      wrote on last edited by
                                      #18

                                      If you go to the "Debugger" tab on the left side, what does it tell you about what debuggers it's trying to find?

                                      1 Reply Last reply
                                      0
                                      • G Offline
                                        G Offline
                                        geotavros
                                        wrote on last edited by
                                        #19

                                        PBarnes, you should be able to debug the application using GDB. But first you need to recompile your application with MinGW compiler. If you compile the application usin MSVC compiler you will not hit any breakpoints when debugging with GDB.

                                        I also have the problem with CDB debugging. Windows 7 x64. I use Qt SDK where is Qt Creator (2.3.1) and Qt 4.7.4 x32. It says:

                                        bq. 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’

                                        I have MSVC 2008 installed.

                                        1 Reply Last reply
                                        0
                                        • G Offline
                                          G Offline
                                          geotavros
                                          wrote on last edited by
                                          #20

                                          I've fixed the problem with CDB debugging by installing Debugging tools for Windows. I have downloaded this iso file (Windows SDK) for x64 Windows:
                                          http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8442
                                          And installed only the Debugging Tools. Now it works.

                                          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