Hey,
I'm trying to set breakpoints in my application that if I run doesn't have any problems, to learn watching the program code step by step.
How can I see the program step by step?
Printable View
Hey,
I'm trying to set breakpoints in my application that if I run doesn't have any problems, to learn watching the program code step by step.
How can I see the program step by step?
It isn't clear from your post what tool are you using for debugging.
My compiler is MinGW.
To run the application I push "Run" button.
At the moment, I want to set breakpoints. To get this goal I go to Run tab, I choose toogle Line Breakpoint and I put in the line that I want to see.
Now the problem is: what more I have to do to be able to see what the program does step by step?
Thanks
which IDE u are using?
Sorry but I don't understand you what you are asking me!
In the computer I have Windows XP and I'm programming with QT 4.4.3.
1. You told us that you push 'Run' button. Where is it located?
2. What are you using to edit source code?
The code that i had programmed is written with C++.
The Run button that I press is which appear in the document that I have attached you
Attachment 3346
so, you are using the Eclipse. IDE it's a Integrated Development Environment.
so, you should add in your pro-file
then rerun (import) your project again in the Eclipse and try to debug again.Quote:
CONFIG += debug
Ok, now it is understood that you use Eclipse as your IDE. (But it was not obvious at the very beginning).
As for debugging, I believe I remember seeing "Step into instruction", "Step over instruction" actions in Eclipse. After debugging hits your first breakpoint it pauses, and from that point you can run it step by step using those actions.
I can't add to my .pro what they said to me.
Can you explain me a little bit more?
ok,i have add it!
now I run the application, I push debug and I take these errors:
Error creating session
Cannot run program "gdb": Launching failed
Cannot run program "gdb": Launching failed
Cannot run program "gdb": Launching failed
???
You need to install gdb. It is not in you mingw bin directory.
Get it from here https://sourceforge.net/project/show...ease_id=594520
THANK YOU!!!
the problem is solved!