Author Topic: Debug a file without project  (Read 6070 times)

Offline mar.ste

  • Single posting newcomer
  • *
  • Posts: 3
Debug a file without project
« on: July 30, 2014, 12:32:58 pm »
First hello everybody and thank you to the Code::Blocks development community for the excellent work!

Just a little question:

I'm not an heavy user of the IDE but once in a while I need to debug a C file. All the program is contained in one file and if I open I can compile and run it. But not debug. In order to debug I had to set-up a project.

The question is: is possible to compile and debug without setting up a project?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Debug a file without project
« Reply #1 on: July 30, 2014, 10:17:23 pm »
Compile: yes,
Debug: no
(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 mar.ste

  • Single posting newcomer
  • *
  • Posts: 3
Re: Debug a file without project
« Reply #2 on: August 02, 2014, 05:40:36 pm »

Good since I was thinking I missed something. Bad since always setting up projects (file changes) is really uncomfortable.

There is a particular reason for not allowing it by design? Can it be added?

Thank you!

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: Debug a file without project
« Reply #3 on: August 02, 2014, 08:29:42 pm »
Bad since always setting up projects (file changes) is really uncomfortable
You can use targets, if you wan't create projects...

There is a particular reason for not allowing it by design?
it is simply not needed from the developers, so it isn't implemented

Can it be added?
patches are welcome

greetings

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Debug a file without project
« Reply #4 on: August 02, 2014, 08:30:10 pm »
(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 mar.ste

  • Single posting newcomer
  • *
  • Posts: 3
Re: Debug a file without project
« Reply #5 on: August 03, 2014, 05:02:03 pm »
http://forums.codeblocks.org/index.php/topic,19501.0.html and many other topics about it...

Sorry, I missed it!...

Unfortunately even if I'm not a beginner (I'm the author of Super micro: smmax.sourceforge.net, and for this I was willing to use it) I do not think it would be so easy to enter in the IDE logic just to add this feature!

Anyway thank you very much for this wonderful free IDE that otherwise has really a lot of features!! :)