Qt Creator 2.6.0 (Qt 4.8.2) Debugger does not work on Windows 7 associated with Visual Studio 2010 Pro SP1

I have to modify a Qt Creator project on Windows 7. The compiler/linker uses Visual Studio 2010 Pro SP1. (The debugger works on VS, but not on Qt.)
I debug by adding print statements. I want to be able to debug using a debugger.

I found this page which also leads to subsequent links.
http://doc.qt.io/qtcreator/creator-debugger-engines.html

The IT department (one person) is overworked, and this debugger task is considered low priority. Furthermore, the admin has no idea how to get the debugger to work. The lead said that if I can come up with a step-by-step written list of things to do, then he would raise the priority of getting the debugger to work. Statements like "add <...> to Qt screen <...>" doesn't help since IT won't know what to do. Need detailed steps.

Maybe someone has already done this and can provide these detailed steps (supported by links so I can review and ask questions, to help clarify the steps - I get one shot to get this to work). General comments and links without the detailed steps probably won't help the IT guy.

A year ago, I think I saw that we needed a version of SDK (maybe SDK 7.1?) to get the Qt Debugger to work. This SDK is not installed on my Windows 7 workstation, but I am told that we are allowed to install it. In general, we have a list of items we are allowed to install, and anything not on the list is not permitted.

My environment:
Windows 7
Qt Creator 2.6.0 based on Qt 4.8.2
Qt Compiler/linker used is hooked to Visual Studio 2010 Pro SP1

Although VS 2010 has a debugger, it is internal and cannot be used to support Qt debugging.

I am guessing that the first step in this process should be to create a restore point (so that if the steps fail, I can revert and still build/run a Qt generated program).

Thanks in advance.

Paul
LVL 33
phoffric\Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subrat (C++ windows/Linux)Software EngineerCommented:
R u able to build using QT with VS2010 compiler?
Can you provide screen shot of Build Settings in QT?
0
phoffric\Author Commented:
>> R u able to build using QT with VS2010 compiler?
Yes, in Release mode only.

>> Can you provide screen shot of Build Settings in QT?
No. Not connected.

Someone thought that for Windows 7, Visual Studio 2010 Pro, I need to get SDK 7.1 installed; and IT is allowed to do that. If that is the case, then what does the IT guy have to do to get the debugger integrated into Qt?
0
phoffric\Author Commented:
We got SDK-7.1 installed, and Qt Creator's auto-detected picked up the cdb.exe. Now we could build in debug mode. We set a breakpoint on a line that was executed, but the program did not stop on the breakpoint.

Debug log file showed that a folder was missing, and there was no required .dll file.

After seeing the errors, the lead found out that Qt has to be installed after SDK-7.1 is installed. This activity will occur in a few months after Windows 10 is installed, so I am going to be using a lot of print statements for 3-6 months.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phoffric\Author Commented:
First install SDK-7.1
Then install Qt

If Qt is already installed, uninstalling it and removing all traces of it (to be certain). Then install SDK-7.1.
Then reinstall Qt.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Debugger

From novice to tech pro — start learning today.