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. Problem in debugging in windows?
Forum Updated to NodeBB v4.3 + New Features

Problem in debugging in windows?

Scheduled Pinned Locked Moved Qt Creator and other tools
19 Posts 5 Posters 10.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.
  • P Offline
    P Offline
    pratik041
    wrote on last edited by
    #1

    While i am trying to start debugging using key "F5". I am getting following message box
    "The Gdb installed at path /...... cannot find a valid python installation in its python2.5 sub-directory. You may set the enviroment variable PYTHON PATH to point to your installation".
    How can i fix this error?

    Pratik Agrawal

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

      How did you set up creator and gdb? Did you get both from the SDK?

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

        [quote author="Tobias Hunger" date="1330431761"]How did you set up creator and gdb? Did you get both from the SDK?[/quote]

        ya i got both from sdk. Do i need to reinstall sdk?

        Pratik Agrawal

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

          I'd "file a bug report":http://bugreports.qt-project.org/ then...

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

            [quote author="Tobias Hunger" date="1330434148"]I'd "file a bug report":http://bugreports.qt-project.org/ then...[/quote]

            I have reinstalled the sdk and now it is working.

            Pratik Agrawal

            1 Reply Last reply
            0
            • E Offline
              E Offline
              elveatles
              wrote on last edited by
              #6

              I'm having the same problem, but I'm getting a different error which is:
              None of the debugger engines 'Cdb engine, Gdb engine' capable of debugging binaries of the type 'x86-windows-msvc2010-pe-32bit' is configured correctly.
              I did some googling, but the only solution I could find was what's stated here "Creator-Debugger-Engines":http://doc.qt.nokia.com/qtcreator-2.1/creator-debugger-engines.html . Pretty much all it says is to download Debugging Tools for Windows which did absolutely nothing. I also tried reinstalling the sdk like pratik041 did, and that also did absolutely nothing. I'm hoping I can get some help.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pratik041
                wrote on last edited by
                #7

                [quote author="elveatles" date="1330482810"]I'm having the same problem, but I'm getting a different error which is:
                None of the debugger engines 'Cdb engine, Gdb engine' capable of debugging binaries of the type 'x86-windows-msvc2010-pe-32bit' is configured correctly.
                I did some googling, but the only solution I could find was what's stated here "Creator-Debugger-Engines":http://doc.qt.nokia.com/qtcreator-2.1/creator-debugger-engines.html . Pretty much all it says is to download Debugging Tools for Windows which did absolutely nothing. I also tried reinstalling the sdk like pratik041 did, and that also did absolutely nothing. I'm hoping I can get some help.[/quote]

                have you tried using the version for ex- to MinGw 4.4 Debug mode

                Pratik Agrawal

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

                  Sorry, how would you do that?

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    pratik041
                    wrote on last edited by
                    #9

                    [quote author="elveatles" date="1330539022"]Sorry, how would you do that?[/quote]

                    Go to project mode and select from the edit build configuration

                    Pratik Agrawal

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

                      elveaties: So you have the debugging tools installed? Where did you put them? Creator should auto-detect them... and then the CDB engine should be available to debug msvc binaries with.

                      You can not use the gdb that is shipped with Qt Creator for those binaries: Ggb will only work with binaries produced by mingw.

                      /me wonders why developing is so annoyingly complex on windows with lots of different ABIs and stuff.

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        elveatles
                        wrote on last edited by
                        #11

                        I tried going to Projects mode and switching to MinGw, but I got the same error except it said 'x86-windows-msys-pe-32bit' instead of 'x86-windows-msvc2010-pe-32bit'.
                        I installed the debugging tools to its default location which is C:\Program Files\Microsoft SDKs\Windows\v7.1. I've never had so much trouble trying to get an IDE to debug. Thank you for the help so far

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

                          elveatlas: Please try grabbing the debugging tools that microsoft offers in a separate package.

                          All that should not happen. It used to work great for me when I was still using windows more or less regularly, both with gdb (for mingw) and cdb (for msvc).

                          1 Reply Last reply
                          0
                          • E Offline
                            E Offline
                            elveatles
                            wrote on last edited by
                            #13

                            Well what do you know, I uninstalled the debugging tools that I had installed before, only this time when I reinstalled it, I only checked the Debugging Tools checkbox and made sure everything else was unchecked (except for IntelliSense since it wouldn't let me uncheck it). And now it works. I don't know why installing all the extra stuff with debugging tools messes things up. Anyway, thank you for helping me solve this!

                            1 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              canismajor
                              wrote on last edited by
                              #14

                              I have the same problem. I am trying very hard to set up CDB or the Windows Debugging Tools so I can debug against Visual Studio 2010.

                              The instructions provided with the Qt documentation aren't very helpful, and nor are the comments made by some experts in qtforum.org that keep referring us to the Microsoft link. For starters, the version provided by Microsoft is much newer than the one in the documentation, and the installation location is different. The Microsoft link now directs you to download the Windows 8 Consumer Preview Version, which I have no interest in whatsoever.

                              I tried specifically downloading the older Version 7.1 but encountered the same problems as elveatles: the download/installation fails and the error reported by Microsoft is next to useless:

                              "A problem occurred while installing selected Windows SDK components.

                              Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.

                              Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems with this issue, please visit the SDK team support page at http://go.microsoft.com/fwlink/?LinkId=130245.

                              Click the View Log button to review the installation log."

                              I've tried this at least half a dozen times without success. The stupid thing is the Samples\Setup\HTML folder was never created so there's nothing to refer to! The log might be useful but it's so full of gibberish I can't tell for sure. It's also got so much personal information in it that I'm reluctant to send it on.

                              Like elveatles, all I have selected is the Debugging Tools for Windows and the required Intellisense stuff, but unlike elveatles I haven't been able to make it work.

                              What a rigmarole, just to get some basic debugging tools.... I'm sure it's not a Qt problem but not being able to make it work is killing me.

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

                                canismajor: Would you please "file a bug report":http://bugreports.qt-project.org/ against Qt Creator about the broken download link? It was still working fine for me the last time I tried to work on windows:-)

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  canismajor
                                  wrote on last edited by
                                  #16

                                  Tobias, the link in the Qt documentation works, it just points to a much more recent version of the Debugging Tools.

                                  The "link" that doesn't work is Microsoft's own installer. Even the SDK team support page link doesn't work.

                                  All I want is to know where I can get a version that will install correctly (clearly not a Qt issue) and will work with Qt....

                                  1 Reply Last reply
                                  0
                                  • C Offline
                                    C Offline
                                    canismajor
                                    wrote on last edited by
                                    #17

                                    For what it's worth, it definitely isn't a Qt problem.

                                    The SDK 7.1 installation works perfectly with Qt on my other computers, so it seems to me that the installation has somehow become corrupted on my main desktop computer. That's no huge surprise given the number of times I've tried to install it.

                                    The big question now is how to fix it?

                                    I'm going to try copying the entire SDK folder from my laptop and then see if I can use the installer to maintain it once some of the files are there. Whilst I'm happy it's not a Qt problem, I'd still be very glad to hear from anyone who has had the same problem and managed to fix it.

                                    1 Reply Last reply
                                    0
                                    • E Offline
                                      E Offline
                                      engrehabhegazy
                                      wrote on last edited by
                                      #18

                                      i faced this problem before and found that kaspersky delete the Gdb exe
                                      so i add it again and disable kaspersky then i was able 2 debug

                                      Rehab Hegazy

                                      1 Reply Last reply
                                      0
                                      • C Offline
                                        C Offline
                                        canismajor
                                        wrote on last edited by
                                        #19

                                        My problem with CDB using MSVC is solved.

                                        Turns out it's a pretty common problem, not at all related to Qt. It's caused by the existence of pre-existing Visual C++ redistributables. The installation works perfectly (in my case) after they are uninstalled.

                                        There are loads of pages that describe the many causes and solutions, but this one seems to be the clearest:

                                        http://notepad.patheticcockroach.com/1666/installing-visual-c-2010-and-windows-sdk-for-windows-7-offline-installer-and-installation-troubleshooting/

                                        Hope this helps others who may be suffering from the same problem.

                                        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