Code::Blocks Forums

User forums => Help => Topic started by: blipton on January 18, 2015, 11:10:07 pm

Title: How to specify command line arguments (args[]) in project build settings
Post by: blipton on January 18, 2015, 11:10:07 pm
I'm trying to debug an application that uses a filename supplied by the user at run-time via the command line.

How can I specify an argument in the project settings so that when the debugger launches it sees 2 arguments (the program name, and the string I specified)?

I know in MS Visual Studio, the project's properties has a debug section where you can specify it, but can't seem to find anything like that in CodeBlocks?

(http://i.imgur.com/Q8e6AVB.jpg)

Thanks!
Title: Re: How to specify command line arguments (args[]) in project build settings
Post by: BlueHazzard on January 18, 2015, 11:34:09 pm
Project->Set programs Arguments

greetings
Title: Re: How to specify command line arguments (args[]) in project build settings
Post by: blipton on January 19, 2015, 02:18:56 am
Doh!   Thanks,  here I was looking for it in all the build option menus!