User forums > Help
Setting the programs' argument while Debugging
(1/1)
whocares21:
Hello. Everyone says that type your CL arguments in the 'set programs argument' part. I did it but it didnt work. I typed "<input.txt" and i tested it. under the main i coded:
--- Code: ---if(argv[1] == "input.txt") cout<<"Done"<<endl;// i mean strcmp() here
--- End code ---
it worked well but it doesnt count my input.txt as a input file when i DEBUG with F8
Normally, in ms-dos i type:
--- Code: ---C:\myProject\bin\debug>myProject<input.txt
--- End code ---
and it works perfect.
is there anyone can do it? cos my input file very huge and i have to debug :( I hope somebody understand what i want
Sorry for my bad english.. Thanks in advance...
oBFusCATed:
"<input.txt" is not a parameter, but a redirection.
There is quite a difference. Search for redirections in your favourite unix programming book if you want to know more.
Redirections are not supported currently but both C::B and gdb (the actual debugger).
p.s. the poll is useless.
Navigation
[0] Message Index
Go to full version