문제

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!

도움이 되었습니까?

해결책

You can add the arguments in:

Run -> Run Configurations -> Arguments -> Program Arguments
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top