User forums > Using Code::Blocks

How do I set the arguments to run a target with?

<< < (2/2)

dje:

--- Quote from: MortenMacFly on July 01, 2008, 08:43:09 am ---
--- Quote from: dje on June 30, 2008, 09:11:33 pm ---What about Run/Debug arguments ?

--- End quote ---
...same thing?! I guess I don't get the question...?!

--- End quote ---
The first time I use Code::Blocks, I was looking for something like Run/Debug arguments". I tried "Set program's arguments" once but I find it less clear than "Run/Debug arguments".

Dje

MortenMacFly:

--- Quote from: dje on July 01, 2008, 09:10:30 am ---but I find it less clear than "Run/Debug arguments".

--- End quote ---
You come from the VS world, right?! ;-)
This does not apply to C::B as targets do not necessarily be just "Release" and "Debug". Look at the C::B project file for example. There you don't have any release/debug target but just libraries, the SDK and the main application (and some preprocessor tools probably). So setting parameters for release/debug doesn't make sense for C::B.

dje:

--- Quote from: MortenMacFly on July 01, 2008, 02:39:20 pm ---
--- Quote from: dje on July 01, 2008, 09:10:30 am ---but I find it less clear than "Run/Debug arguments".

--- End quote ---
You come from the VS world, right?! ;-)

--- End quote ---
Yes, all is not wonderful but as there is only one framework and one compiler/linker/debugger completely imbricated/integrated/"englued", it seems that configuration is a little easier.

Nevertheless, forgetting Visual aspects, does it make sense to have this item in the project menu ?
Isn't host application useful only when working on static or shared libraries ? What should be related only to project/target ?
I think a better place for this could be in the project properties where we have the output/targets. I think we should find in the project menu the files related operations and the links to the project properties and build options, not this detailed part of configuration.

Dje

dmoore:
dje: I think it's where it is because it is easier to access for people who regularly change their program args. I also had to ask before I found that option, but I'm not sure it's the name (although I see nothing wrong with "Run/Debug arguments" and I don't use VStudio) of the menu option as much as being in an unexpected place. The first thing I would do would be to move the menu item down between build options and properties in the project menu. An option to access that dialog could also be added as a button in project -> properties -> build targets.

Navigation

[0] Message Index

[*] Previous page

Go to full version