output window in VS 2008

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!

ube100Asked:
Who is Participating?
 
ZhaolaiCommented:
Are you running in release mode? If so, debug.write will be skipped.
0
 
Carl TawnSystems and Integration DeveloperCommented:
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
 
kraivenCommented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
ube100Author Commented:
Yes, I'm aware of that.
0
 
kraivenCommented:
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
 
ube100Author Commented:
No, its still the same result.
0
 
ZhaolaiCommented:
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
 
jorgesv13Commented:
Try using Console.WriteLine() instead.
0
 
ube100Author Commented:
Partily helped
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.