[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1882
  • Last Modified:

Visual Studio C++ 2008 -- How do I send text to the output window at runtime?

Hi, I'd like to send debug text to the output window at runtime... any idea if there is a trace function or something to perform this?

Thanks

0
oxygen_728
Asked:
oxygen_728
1 Solution
 
JimBrandleyCommented:
In VS2005, this works:

System.Diagnostics.Debug.Write() or WriteLine()

I have not used VS2008.

Jim
0
 
AUmidhCommented:
Trace.WriteLine("AUmidh")
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
if you are using MFC (part of Visual C++) then simply
TRACE("hello");
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
primeMover2004Commented:
Use "OutputdebugString" (in c++, in any VisualStudio6&2002&2003&2005&2008, with or without MFC/ATL)

How to implement:
http://www.unixwiz.net/techtips/outputdebugstring.html
0
 
oxygen_728Author Commented:
This solution always works, whereas the others only work sometimes - depending on project settings. Thanks
0
 
oxygen_728Author Commented:
Important Comment: It's OutputDebugString  (case sensitive :p  )
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now