Solved

output window in VS 2008

Posted on 2010-11-17
9
310 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
Comment Utility
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
Comment Utility
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
Comment Utility
Yes, I'm aware of that.
0
 
LVL 3

Expert Comment

by:kraiven
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:ube100
Comment Utility
No, its still the same result.
0
 
LVL 17

Accepted Solution

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

Expert Comment

by:Zhaolai
Comment Utility
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
Comment Utility
Try using Console.WriteLine() instead.
0
 

Author Closing Comment

by:ube100
Comment Utility
Partily helped
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

9 Experts available now in Live!

Get 1:1 Help Now