How to redirect a debugging log file in VC++ .NET 2003

I want to generate a log file (e.g. output.txt) for debugging output.
I want it in my project's debug directory. I can generate the file but not in the right place.

I open the project properties page and choose Debugging to get a series of edit boxes, one is called Command Arguments.
I enter the following for Command Arguments:
> output.txt

This creates the file in
C:Program FilesMicrosoft Visual Studio .NET 2003Common7IDE
aka $(DevEnvDir)

However, I want it in C:HomeCodingCPPProject1Debug
aka $(TargetDir). When I enter the Command Argument:
>$(TargetDir)output.txt it doesn't work.

Please would someone tell me what the correct Command Argument is to get the output file where I want it.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!