User forums > Using Code::Blocks

How to debug a console application which is loaded by the command prompt

(1/1)

gabrielksa:
Hi!

I'm a newbie, and I'm trying to debug an application which is loaded by the command prompt, that passes the input information to the program, such as the intput/output file names. I've read some topics about setting the program's arguments, but I don't know how whether the solution is there, and nor even how to set it for my case.

For example, to load the application, I have to run the command prompt and type in the application directory:   epanet2d   input.inp   report.rpt    output.out.


Might anyone help me?

oBFusCATed:
yes you can...

Project -> Set program's arguments -> choose your target and enter the arguments " - input.inp   report.rpt    output.out"

Navigation

[0] Message Index

Go to full version