User forums > Using Code::Blocks
How do I set the arguments to run a target with?
Jonathan Blow:
This is probably a stupid question but I can't figure out how to set command-line arguments when running a target from CodeBlocks. This is one of the most basic things anyone would ever want to do, so there's got to be a way to do it, but I can't find it anywhere in the IDE, and I have searched the documentation and found nothing.
I found the place where the working directory gets set (in Properties/Build Targets/[target]/Execution working dir), which might be one place I would expect the arguments to be settable; it's not there.
Can anyone clue me in?
MortenMacFly:
--- Quote from: Jonathan Blow on June 30, 2008, 06:59:25 pm ---how to set command-line arguments when running a target from CodeBlocks.
--- End quote ---
Go to the menu "project" and then "Set program's arguments".
...probably we should rename this entry into something like "Set target's/program's arguments".
dje:
What about Run/Debug arguments ?
Jonathan Blow:
Cool; thanks. One of the first things I will try to write for Code::Blocks is a plugin that creates a toolbar that just has the arguments in it, so you can change them easily without navigating menus. This was one of the things that annoyed me all to hell about Visual Studio (especially given how long it would take to pop up the settings menu)... CB's menus are a lot faster but it's still a lot more indirect than I would like!
MortenMacFly:
--- 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...?!
Navigation
[0] Message Index
[#] Next page
Go to full version