Questions tagged [outputdebugstring]

OutputDebugString function is for sending a text to the attached debugger, if any.

Use the function OutputDebugString to send the text to the attached debugger, if there is any. Without the debugger attached, this function does nothing. Debuggers like Visual Studio, WinDBG, Dependency Walker, DebugView can be used to see the output of this function.

This function is mainly used to debug your own program. It's very similar to writing text to screen (printf, cout etc) or to a log file to see what's the program doing.

OutputDebugString is actually a macro, that maps to one of the core functions: OutputDebugStringA or OutputDebugStringW

38 questions
0
votes
1 answer

OutputDebugString error

I use: OutputDebugString(L"My error"); in Visual Studio 2010, but instead of displaying "My error", I get just an "ERROR" in the window. How do I fix this issue?
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
0
votes
1 answer

OutputDebugString function don't send the message in my console app

I try to send debug mesage with OutputDebugString function. I use this function in my dll project and i get this message in DebugView. I also use this function in my console app project(same solution) but i can't get messages. All messages appear in…
0
votes
2 answers

calling std::cout.rdbuf() produces syntax error

Maybe I missed something, but I cant figure out why Visual Studio 2008 isn't seeing the rdbuf() procedure. Here is my code: 16. #include "DebugBuffer/BufferedStringBuf.h" 17. 18. BufferedStringBuf debug_buffer(256); 19.…
Mikepote
  • 6,042
  • 3
  • 34
  • 38
0
votes
2 answers

Enumerating DirectSound device descriptions results in unnecessary question marks

I'm Enumerating all DirectSound output devices and storing their descriptions for later use during the runtime of my process. When I use OutputDebugStringW to check the results, I get the correct name of the device, but it's appended with…
NmdMystery
  • 2,778
  • 3
  • 32
  • 60
0
votes
1 answer

Trace from aspx.cs file

How can I trace from the client side of a ASP.NET web application ? I'm trapped in a aspx.cs file and I really need some fast simple debugging. I tried System.Diagnostics.Trace.WriteLine without success: nothing appeared in DebugViewer when I…
Liviu
  • 1,859
  • 2
  • 22
  • 48
0
votes
1 answer

Windows 2008 r2 debugview (OutputDebugString) issue

Hi we are installing x86 application as a service on windows 2008 R2 which is using OutputDebugString for debug messages. The problem is that DebugView utility catches the debug output from the application only when application is run from console…
Boris
  • 1,311
  • 13
  • 39
0
votes
0 answers

Using OutputDebugString in the code is making the compilation fail when built in release mode.(VC++)

I have used OutputDebugString @ many placed in my VC++ code. Its building fine in debug mode. But using the same code with OutputDebugString is making the compilation to fail. How to avoid this build failure in RELEASE mode even while using…
codeLover
  • 3,720
  • 10
  • 65
  • 121
-2
votes
2 answers

Capturing OutputDebugString() calls on a server written in Delphi

I have a server written in Delphi that I would like to add a debug logger to so it can log messages passed to Windows.OutputDebugString() while it is deployed, so clients can send me the log when there are issues. In the end, I want functionality…
El Capitan
  • 27
  • 1
  • 7
1 2
3