Question

I try to debug a larger source code that expects an input in the main function. Otherwise it just prints the line:

"usage: Programm <example_input.xml>"

I don't know how to insert this input at the beginning of the debugging so that I can step through the whole code. I'm using eclipse for the debugging. If it's not possible to dot his with eclipse I can switch to the gdb-debugger in the command line.

Thanks to you!

Was it helpful?

Solution

You can add the arguments in:

Run -> Run Configurations -> Arguments -> Program Arguments
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top