Problem in debugging in windows?



  • 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?


  • Moderators

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



  • [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?


  • Moderators

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



  • [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.



  • 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 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



  • Sorry, how would you do that?



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

    Go to project mode and select from the edit build configuration


  • Moderators

    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.



  • 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


  • Moderators

    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).



  • 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!



  • 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.


  • Moderators

    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:-)



  • 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....



  • 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.



  • 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



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.