News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code::Blocks debugging problem

Started by petroo, January 08, 2016, 08:01:54 PM

Previous topic - Next topic

petroo

Hello fellow codeblocks users . I've got a problem i'm facing for several weeks and after trying multiple times to reinstall the IDE still can't overcome . Everytime when i create a project in codeblocks the debugging feature is available (clickable) (which is fine). The problem occurs when i close the IDE/project. The next time i load the project  codeblocks doesn't let me debug the program once again.

oBFusCATed

What do you mean by doesn't let me debug the program?
The menu is greyed out, there are errors?
What kind of project you've created?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

petroo

The menu is greyed out and i've made a console application.

oBFusCATed

Do you have a project opened?
The menu is greyed out when there is no project opened.
Can you show me a screenshot?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

petroo

#4
Yes the project is opened when i close the IDE. Here is a screenshot.And please forgive me for my very awful response rate.
http://imgur.com/tyb7THq

oBFusCATed

What do you understand as a project?
main.c is not a project in C::B's terms.
You create a project by going to File -> New -> Project.
If you don't have a project file opened you won't be able to debug.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

petroo

That's the way i did it. I've created an entire project in Code::blocks just the way you've described it.

petroo

Another aspect is that the debug pannel "remains colored"(by which i understand it works) for like 2-3 seconds after I open any project , then it turns off.

BlueHazzard

#8
In your screenshot you have not opened the project, only the c file. The debugger can't work if you don't use a project...
[Edit:]If you reopen codeblocks you have to load the *.cbp file not the .c file
If you have done it correctly you will see the project on the left site under "worspace". From there you can open your c file

greetings

petroo

I was so blind . Thanks a lot for the help you've provided , you are the best.