Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: bmoviehorror on October 27, 2009, 09:16:20 pm

Title: Supply *argv in debug mode
Post by: bmoviehorror on October 27, 2009, 09:16:20 pm
Hi all,
I've just downloaded code::blocks and it is all very intuitive so far. I'm trying to debug a console application and was wondering if there is a way of passing in command line parameters to the executable when debugging begins. Many thanks
Title: Re: Supply *argv in debug mode
Post by: zabzonk on October 27, 2009, 09:35:40 pm
The Project menu has a Set Programs Arguments option to do this.

Really, all IDEs (this is not just a CB problem) should provide a per project build  configurable dialog to provide paramters that pops up EVERY TIME (also configurable)  the exexcutable is run.
Title: Re: Supply *argv in debug mode
Post by: bmoviehorror on October 27, 2009, 09:58:20 pm
Superb. Thank you very much!
Title: Re: Supply *argv in debug mode
Post by: joex26 on October 28, 2009, 06:25:55 pm
The Project menu has a Set Programs Arguments option to do this.

Really, all IDEs (this is not just a CB problem) should provide a per project build  configurable dialog to provide paramters that pops up EVERY TIME (also configurable)  the exexcutable is run.

I don't agree with you. I think it would be very annoying to pop up every time.
Title: Re: Supply *argv in debug mode
Post by: zabzonk on October 28, 2009, 06:40:49 pm
> it would be very annoying to pop up every time.

which is why I said: "EVERY TIME (also configurable)"