Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Debugging / October 2003

Tip: Looking for answers? Try searching our database.

Debugger ignores "working directory" property when redirecting input and output

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JayWay - 05 Oct 2003 00:22 GMT
In VC++ 6.0 I could redirect input to and output from the program being
debugged by placing my input file in the desired directory and specifying the
directory in the "working directory" field in the debug options.  For example,
I would put
"< input.txt > output.txt"
in the "program arguments" field to redirect input from input.txt and output to
output.txt.  If I specified in the "working directory" field the directory where
input.txt resided everything would work as expected.

In Visual Studio C++ .NET 7.1 when I specify "< input.txt > output.txt"  for
command arguments, I have verified that the input file is always searched for
(and the output file placed) in the common7\IDE folder off of the root VS
install directory.  This is no matter what I type in the "Working Directory"
field.  Before I put input.txt in the aforementioned install folder, there would
be an error message when I started debugging: "Output cannot be redirected
because the specified file is invalid."

I would like to avoid polluting the VS install folders.  I would also like to
avoid specifying the full pathname of my input and output files.  Does anyone
know how to get VS7 to debug the way VS6 did?

Thanks, Josh
Andy Pennell [MSFT] - 23 Oct 2003 22:55 GMT
This is a confirmed bug, fixed in the next version. Please dont ask me when that releases...

Signature

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.  
--------------------

> From: "JayWay" <JoshHueh_SPAM@yahoo.com>
> Subject: Debugger ignores "working directory" property when redirecting input and output
[quoted text clipped - 33 lines]
>
> Thanks, Josh

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.