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
2
votes
1 answer

Umdf2 Hello World Driver, Where to see output?

I want to write a UMDF2 windows driver, I don't know where to see the output from OutputDebugString. This is my code, similar to KMDF Hello World. #include #include NTSTATUS UmdfHelloWorldEvtDeviceAdd(_In_ WDFDRIVER Driver,…
2
votes
1 answer

How would my program listen to OutputDebugString output and allow launch of multiple instances?

Here's my scenario: I have a program which produces debug output with OutputDebugString() which maybe contains messages indicating bugs. I want to run this program inside daily build and automatically listen to debug output, parse it and report…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
2
votes
1 answer

Windows 98 SE - Calling OutputDebugString from a 16-bit console app

I would like to be able to call OutputDebugString from a Turbo Pascal 7.0 console mode program. The host PC is running Windows98, which as far as I can tell supports OutputDebugString. I can't find any header files that declare the entry point and…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
2
votes
3 answers

Using a integer for OutputDebugString in VS2017

I've been searching around on the web for a while on how to output a integer or optionally a float using OutputDebugString(). It would be easier if i could write my debug data straight to the console from my external executable using this command.…
2
votes
1 answer

Debug.WriteLine in Windows Service to OutputDebugString

Context NOTE: log4net isolated out from the issue, just writing the context for more diagnostic facts I am using log4net RollingFileAppender and DebugAppener. The app can be started in console mode but also can be installed as service. When…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
2
votes
1 answer

How to view output of OutputDebugString () across the network?

Further to my previous question, I find that I cannot use the GExpertsDebugWindow on a PC which did not previously have Delphi installed. If I have the following (not unusal, so probably of interest to others) requirements, do I need to roll my own…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
1
vote
0 answers

BugTrap and RapiDbg on Windows Mobile 6.0

I'm trying to port a driver and a few applications from a PDA running PocketPC 2003 (Windows CE 4.21) to one running Windows Mobile 6 (CE 5.2). Does anybody know if/how I can log the OutputDebugString calls made by the driver, short of using the…
Mau
  • 186
  • 1
  • 6
1
vote
1 answer

OutputDebugString with both WinDbg and DbgView

With DebugView is simple: I clear its output window with "DBGVIEWCLEAR" (in OutputDebugString, ODS), and then I show some 10 lines of info. I do this with a timer, 10 times per second. But, while using WinDbg, DebugView doesn't get any output from…
aleksazr
  • 89
  • 7
1
vote
2 answers

How to view a System::String with OutputDebugString?

I am trying to debug a value that is System::String. As I am using Visual Studio, I would normally use OutputDebugString or its variants to see the strings, but System::String aren't natively compatible with OuputDebugString. How do I convert a…
1
vote
1 answer

Delphi 10.4 Events view not updating during debug

I want to use Events View more dynamically. I use OutputDebugString(PChar(s) and want it to update the events view. s := 'test ' + String(Datetimetostr(now)); OutputDebugString(PChar(s)); It works, but the events view does not update dynamically…
1
vote
1 answer

How to filter Visual Studio 2008 output window

I'm looking for a way to filter the messages coming out from OutputDebugString into the Output window in VS 2008. I'm modifying a large system and I'm only interested in my messages in the log. I don't mind the output to be external to VS, in fact I…
Eldad Mor
  • 5,405
  • 3
  • 34
  • 46
1
vote
1 answer

Issue Capturing Global (Session 0) OutputDebugString messages via Win32 API?

I am currently working on a simple application to capture OutputDebugString messages (similar to Windows Sysinternals DbgView or DBMon.NET). Everything is working as expected when accessing OutputDebugString messages from the Local session (i.e.,…
Chris Baxter
  • 16,083
  • 9
  • 51
  • 72
1
vote
1 answer

How to Log an OutputDebugString via Log4Perl

it is possible to log all messages/levels with Log4Perl directly into an OutputDebugString (Windows System)? I have some modules which use already log4perl, but now i want to use these modules in an environment where all log messages are…
wreggyl
  • 93
  • 6
1
vote
2 answers

Delphi - hook\bypass\catch all the OutputDebugString from the system into my application with process id and name

Based on this question I've created a small application which is catching all debug strings into my application. Code of the thread is shown below. I want to get the process id and its name for each debug string I got. After I've made some research…
RBA
  • 12,337
  • 16
  • 79
  • 126
0
votes
1 answer

How to add a timestamp to OutputDebugString()?

I am writing a C++ application, and I want to add a timestamp to OutputDebugString(). I already know that if I watch the application using DebugView, it automatically show timestamps. But for a particular reason I want to add TimeStamps to any…