• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

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!

0
ube100
Asked:
ube100
  • 3
  • 2
  • 2
  • +2
1 Solution
 
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
 
ube100Author Commented:
Yes, I'm aware of that.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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:
Are you running in release mode? If so, debug.write will be skipped.
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now