views:

19

answers:

1

I have the following in Debugging | Command arguments -a start.ini > c:\temp\a.out

The argc is 3 as expected but is 5 in one of my collegues machine- it seems as if the redirection operator is taken as an arguemtnt on his box. Is there any setting to fix this ?

A: 

Redirection support in the "Debugging|Command Arguments" project setting was broken in Visual Studio at some point, but I'm not sure exactly which releases that's true for (http://connect.microsoft.com/VisualStudio/feedback/details/333493/cant-redirect-stdin-stdout-for-debugging). From the sketchy information I've found, it seem like it worked though VS2005. was broken in some versions/releases (but maybe not all updates) of VS2008, and is working in VS2010.

You might want to make sure you and your colleague are running the same version of Visual Studio (including service Packs).

Redirection in the "Debugging|Command Argument" setting is working OK right now for me with VS 2010.

Michael Burr