Solved

output window in VS 2008

Posted on 2010-11-17
9
313 Views
Last Modified: 2012-05-10
I'm sending my output to the debug window in the following way in my win form:

 Debug.Write(returnValue);
when I view the output window I'm not getting any output atall. What this above statement should do? I believe, this should send the output to the output window or some where else?
please someone advice me.

Thanks!

0
Comment
Question by:ube100
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34154564
Generally it should, unless you have switched the output stream somewhere, or you have the "Redirect all Output Window text to the Immediate Window" set.
0
 
LVL 3

Expert Comment

by:kraiven
ID: 34154818
Also note the output pane in visual studio ide has a drop-down to select the output from Build or Debug - are you overlooking this?
0
 

Author Comment

by:ube100
ID: 34155399
Yes, I'm aware of that.
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 3

Expert Comment

by:kraiven
ID: 34155561
Are you stepping through the code and not seeing output after this line executes? If so try Debug.WriteLine() instead - may not have made it into the Output buffer after a single Write command.
0
 

Author Comment

by:ube100
ID: 34155876
No, its still the same result.
0
 
LVL 17

Accepted Solution

by:
Zhaolai earned 250 total points
ID: 34159973
Are you running in release mode? If so, debug.write will be skipped.
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 34160000
Set a breakpoint at the debug.write line, and run the app. Does it stop at the breakpoint? If yes, check the Immediate window and see if the output is there. If not, you are running in release mode. You need to change it to run in debug mode, in order for the debug.write to be executed.
0
 
LVL 8

Expert Comment

by:jorgesv13
ID: 34390493
Try using Console.WriteLine() instead.
0
 

Author Closing Comment

by:ube100
ID: 34506987
Partily helped
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question