debugging with visual studio using redirected standard input

This is a supported debugging scenario. You do have to make sure that the debugger can find the file. Leave the Command setting at $(TargetPath). A possible value for the Command Arguments setting is:

 < "$(ProjectDir)test.txt"

if the input file “test.txt” is located in the project directory. Or type the full path of the file to be sure. The MSDN article that describes this feature is available here.

Leave a Comment