[Solved] How to use breakpoint?
I have a simple question.
I set the left sidebar to Debug(not release), set the red point to one line & press ctrl+R to run, but breakpoint doesn`t work. How can i use breakpoint?
I have another question, too. in the menu of Qt Creator, Window > Views is disabled. why?
Thanks a lot.
Ctrl+R is starting an app without debugger attached.
F5 is starting with debugger attached (or corresponding menu entry in the Debugging menu).
the Views menu is not available in Edit mode. It becomes available when you start debugging and are on the Debug tab.
Thanks a lot for your response dear Chris Kawa.
I have another question.
when i press F5, an error appears: "No debugger set up."
what`s the problem?
I download & install "qt-opensource-windows-x86-msvc2012_64_opengl-5.2.1"
The problem is exactly what it says: "No debugger set up" :)
Qt Creator doesn't use the VS built-in debugger. It uses one that is part of Windows SDK. You can download it from "here":http://msdn.microsoft.com/en-US/windows/desktop/bg162891
On the features selection page select only "Debugging Tools For Windows" (unless you want to play with other features too).
When you use the MSVC2012 (or any other version of MSVC) you need to install the Microsoft development tools before the debugger is available.
When you did so, setup your kit to select the proper debugger.
When your not stuck to 64 bits or MSVC compiler, switch to MinGw and you get the debugger already setup.
Thanks for all response.
I searched and have a new problem.
i found 3 download link:
- win7 & .Net 3.5
- win7 & .Net 4
- win8.1 & .Net 4.5
i think no one of them can`t help me:
i use win7 & .Net 4.5 (because i use mcvs2012 in win7)
How can i solve this problem?
Excuse me because of my simple question.
I think i found the right link:
Use the newest one, the one that I linked to earlier (or "just click here":http://www.microsoft.com/click/services/Redirect2.ashx?CR_EAC=300135395).
It doesn't really matter because all you need is the C++ debugger, not any headers and certainly nothing of .Net.
Thanks so much because of your response dear Chris Kawa.
I download the link you mentioned. when i want to install this sdk, i can select the features.
which one of the features must be installed in order to debugger of Qt creator works properly?
As I said previously - Debugging Tools for Windows