Author Topic: C File without starting a Project  (Read 4649 times)

Offline Sensei

  • Multiple posting newcomer
  • *
  • Posts: 20
C File without starting a Project
« on: June 20, 2013, 10:15:08 am »
Hello Code::Blocks users,

I discovered that if you create a blank file and write a small c programm without starting with a project debugging will not be possible.
I checked the compiler settings and the +g option for generating debug symbels was set.

I came across this problem while we teach our trainee the bascis of programming in c and for his small examples he didn't create a projekt
every time, but in the case of a programming error he will not able to find his problems himselb by degugging.

Is there a way to debug such  a single file also if a projcet was not created?

Thanks in advance

Sensei

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C File without starting a Project
« Reply #1 on: June 20, 2013, 11:49:01 am »
Is there a way to debug such  a single file also if a projcet was not created?
Yes create a project or use command line gdb... answered many times before...
(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 Sensei

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: C File without starting a Project
« Reply #2 on: June 20, 2013, 01:05:15 pm »
Hi thanks for your reply

Quote
... answered many times before...

maybe I did not use the right keywords on my forum search.

First of all I think C::B is a well made IDE with an excellent integration of the gdb.
Therefor I'm a little bit confused that debugging of a single files is not supported, just with the fact if you do some very small programs for a learning purpose.
Creating a single project for every three lines of code is not worth the work an produces more directories in the filesystem than necessary.
The proposal to use the commandline gdb to do a single file debugging while haveing C::B with this great integration of the  gdb is just a joke.
In my opinion such a great tool sould definitly be able to do also a single file debugging with no problems.

I barly can imagine why this is not implemented.

Greetings

Sensei

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C File without starting a Project
« Reply #3 on: June 20, 2013, 01:18:02 pm »
In my opinion such a great tool sould definitly be able to do also a single file debugging with no problems.
Patches welcome.
Until then you'll have to create projects or learn cmd line gdb.

I barly can imagine why this is not implemented.
Because it is not that simple.

p.s. I have it in the ToDo, but I doubt I'll ever get to implementing it...
(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 Sensei

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: C File without starting a Project
« Reply #4 on: June 20, 2013, 02:29:22 pm »
Hi,

I don't have any doubts about your skills.

I thought this feature was just not planned, in that case it's good to know that you have it on the ToDo.

I don't know that this is not easy to implement.

Keep on the good work.

Greetings

Sensei

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C File without starting a Project
« Reply #5 on: June 20, 2013, 03:03:30 pm »
I thought this feature was just not planned, in that case it's good to know that you have it on the ToDo.
Don't count much on this. It is very low priority and might take years before I'll implement it, if ever.
Generally I don't use single file compilation, so I'll never use this feature myself...

But I'll be happy to review a patch about it.
(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!]