User forums > Using Code::Blocks

How to debug program without creating a project

<< < (2/2)

MortenMacFly:

--- Quote from: dk on June 24, 2009, 04:12:26 pm ---So I also want to have a single-file debugging feature.

--- End quote ---
This is not as easy as you would think.

Why don't you use the "default workspace" feature of C::B that opens a default workspace on startup of C::B. This could already include a dummy (empty / one file) project. Very easy and debugging is possible from scratch.

dk:

--- Quote from: MortenMacFly on June 24, 2009, 04:16:47 pm ---Why don't you use the "default workspace" feature of C::B that opens a default workspace on startup of C::B. This could already include a dummy (empty / one file) project. Very easy and debugging is possible from scratch.

--- End quote ---

And every time we want to start new task, we should remove old source file from the project and add new file with the new task? It isn't so easy too...

MortenMacFly:

--- Quote from: dk on June 24, 2009, 04:32:32 pm ---It isn't so easy too...

--- End quote ---
Well - remove file (shortcut) + Drag&Drop. Alternativaly a script can do it for you.

Anyways: I'm afraid debugging a single file will not be supported any time soon.

dk:

--- Quote from: MortenMacFly on June 24, 2009, 04:48:33 pm ---Well - remove file (shortcut) + Drag&Drop.

--- End quote ---

It is easy to say, but it isn't easy for young pupil to remember this actions.
Because in the most cases they don't need debugging, and they don't need the project at all.

Ceniza:
Now that would be a gorgeous way to make the single-file-without-project functionality be really nice. However, it looks like I am the only developer supporting the idea to provide better... er... support for that. Morten, on the other hand, is actually suggesting to remove it altogether (he doesn't use it, so he doesn't care). Too bad I haven't been in the mood to do much lately (counting in months now), and the last few days I have been sick :(

Isn't really there any other developer who thinks the single file functionality should be improved?

I would also like to remind you of an old post where I suggested to have a mechanism to define compiler/linker options that could then be selected as global, for single file compilation or for projects. It would be something like the options sets (or whatever they are called) in Delphi 2009, just way better. I think it would be another nice addition that also happens to improve the single file functionality.

Yiannis: In a scale from 8 to 35 (8 being extremely easy, 35 being hardly possible), how would you rate modifying the debugger plugin to support that?

Navigation

[0] Message Index

[*] Previous page

Go to full version