How to redirect input in debugger?
I can run my program from command line and pass in input from a file, e.g.
python ./test_program.py < sound\sound.i0
How can I do the equivalent in the wing IDE so I can take advantage of the debugger and breakpoints?
I've tried setting the debug preferences to "use external console" and not "use sys.stdin Wrapper" but when I try to pass in arguments "< sound\sound.i0" via "Use Project Settings and the Following Run Args", the input file is not read in - the program just seems to hang on a line such as
nmc = input().split()
I suppose this is because it is not getting any input from my argument "< sound\sound.i0"
I've figured out that if I cut and paste lines into the I/O window at the right time, the input it parsed properly, but since my input file is 100s or 1000s of lines this is not practical.