Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Sensei 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
-
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...
-
Hi thanks for your reply
... 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
-
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...
-
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
-
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.