News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to debug in code blocks?

Started by richardm55, August 09, 2015, 04:45:54 PM

Previous topic - Next topic

richardm55

Do you know any good tutorial or guide how to use debug function in code blocks?
When I tried to do that I faced some problems. When I got to the point to take variables from cin nothing happened in console and it has not taken anything.

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

BlueHazzard

you can search on youtube for easy debug videos.
Quote from: richardm55 on August 09, 2015, 04:45:54 PM
When I tried to do that I faced some problems.
what problems?

richardm55

Youtube tutorials are too simple and don't cover all issues. I have problem with reading the values in cin in debugging.

BlueHazzard

What are your problems.... Without code or an example we can't help... This youtube videos cover all needed stuff...

richardm55

I still repeat what my problem is. While I debug and press F7 for next line and when I get line with cin for reading some variables the console can not accept and take those variables.

scarphin

You have to go past 'cin' line for the console to accept input if that's your problem. The logic is the line shown with the debug pointer hasn't executed yet. If that isn't your problem please post the steps to produce.

richardm55

OK I will do that. I will save some screens of those steps and I will  post them here.