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?
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.
Last edited by lyuts; 19th June 2009 at 09:26.
I'm a rebel in the S.D.G.
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
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?
I'm a rebel in the S.D.G.
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
run.zip
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.CONFIG += debug
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
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'm a rebel in the S.D.G.
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
Last edited by lyuts; 19th June 2009 at 13:10.
I'm a rebel in the S.D.G.
THANK YOU!!!
the problem is solved!
Bookmarks