Solved

output window in VS 2008

Posted on 2010-11-17
9
312 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
 
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

912 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now