Author Topic: Code::Blocks debugging problem  (Read 3254 times)

Offline petroo

  • Single posting newcomer
  • *
  • Posts: 6
Code::Blocks debugging problem
« on: January 08, 2016, 08:01:54 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks debugging problem
« Reply #1 on: January 09, 2016, 06:58:18 am »
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!]

Offline petroo

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks debugging problem
« Reply #2 on: January 10, 2016, 11:26:48 am »
The menu is greyed out and i've made a console application.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks debugging problem
« Reply #3 on: January 10, 2016, 11:35:34 am »
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!]

Offline petroo

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks debugging problem
« Reply #4 on: January 10, 2016, 07:48:40 pm »
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
« Last Edit: January 10, 2016, 07:50:31 pm by petroo »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks debugging problem
« Reply #5 on: January 10, 2016, 08:58:12 pm »
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!]

Offline petroo

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks debugging problem
« Reply #6 on: January 10, 2016, 10:41:52 pm »
That's the way i did it. I've created an entire project in Code::blocks just the way you've described it.

Offline petroo

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks debugging problem
« Reply #7 on: January 10, 2016, 10:44:09 pm »
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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Code::Blocks debugging problem
« Reply #8 on: January 10, 2016, 11:40:15 pm »
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
« Last Edit: January 10, 2016, 11:42:31 pm by BlueHazzard »

Offline petroo

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks debugging problem
« Reply #9 on: January 11, 2016, 09:27:13 pm »
I was so blind . Thanks a lot for the help you've provided , you are the best.