By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,332 Members | 1,414 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,332 IT Pros & Developers. It's quick & easy.

dev-cpp debugging help

P: 2
hi, im a cs student and im working on a MyString class and having alot of trouble i think it would help out a lot if i knew how to use the debugger in dev-cpp, in lab we learned how to use the one in code warrior but i dont have that compiler , please help
Feb 24 '07 #1
Share this Question
Share on Google+
1 Reply

P: 1,806
right clicking on a line of code will highlight it in a certain colour (my devcpp uses green, but I may have changed the settings somewhere along the way....)

Then click the right-most (i think) of the compile/run icons. When it gets to the line you clicked, the program will stop.
You can then click "step" to move one more line down your code. If you come to a method, "step" will execute the method and set you at the next line beyond, but you can click "step into" BEFORE the method to step through that method as well. While in debug mode, hovering (or right clicking) a variable should bring up its' value in the screen on the left hand side. Continue will continue to execute code as normal until either it hits another break point or completes the programme. Stop execution will (obviously?) stop the program where it is an reset the variables.

There are more complex things you can do to track variables if you like. If you specify other things you want to do, someone may be able to elarborate....
Feb 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.