Debug Output

This program is showing all debug information when your program is running, not in the Debug output window of your compiler, but in an other window.
The reason for DbgOut doesn't use OutputDebugString is to show always debug string in an other window (like in the old day Win 3.1).

You can save, modify or print this information (DbgOut.exe is using an EditView from MFC)

Main macro
DBGOUT : show a formatting string
DBGOUT_LASTERROR : Show last error message in an human way

The main difference with Message Tacer is there are no lib to link. Only include DbgOut.h and voil`.
You can see every OutputDebugString of processes not attach to a debugger, or string send by DBGOUT macro.

Program option

  • Always on top
  • show all OutputDebugString with the pid of the process who send it

You could find in this program :

  • a way to run a single instance under NT.
  • managing UNICODE and ANSI string
  • an example of using WM_COPYDATA as IPC
#include <DbgOut.h>
.....
    int foo = 66;
    DBGOUT (_T("Something to say (%d)"), foo);
.....
    if ( ! m_file.Open (pPath, CFile::modeRead | CFile::shareDenyWrite, &m_fileException))
    {
        DBGOUT_LASTERROR (_T("Open (%s)\n"), pPath);
        return FALSE;
    }

Download source - 24KB

Date Posted: 07/07/98



Comments

  • It's great, but with many information DBGOUT stop to receiving information

    Posted by Legacy on 03/20/2002 12:00am

    Originally posted by: Fernando

    The Dbgout has a problem when you try to send several lines
    of trace, so it stops to receive.

    Dbgout doesn't send a error, just stop to receive information.

    I hope there is a way to jump this problem.

    Thanks

    Fernando

    Reply
  • Thanks! It was very lightweight and useful!

    Posted by Legacy on 02/08/2002 12:00am

    Originally posted by: tsao

    I've tried most of the tracer tools
    in this codeguru section and this was the best
    tool for my need. it was very simple, no link or anything
    involved, and the monitor window was very good
    since you can edit/cut/copy/save/print the trace
    message. Sometimes the classical windows programming
    can be very useful(message, window class etc), and this
    tool will make you realize it.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 19, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT You deployed your app with the Bluemix PaaS and it's gaining some serious traction, so it's time to make some tweaks. Did you design your application in a way that it can scale in the cloud? Were you even thinking about the cloud when you built the app? If not, chances are your app is going to break. Check out this upcoming webcast to learn various techniques for designing applications that will scale successfully in Bluemix, for the …

  • Live Event Date: September 19, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT In response to the rising number of data breaches and the regulatory and legal impact that can occur as a result of these incidents, leading analysts at Forrester Research have developed five important design principles that will help security professionals reduce their attack surface and mitigate vulnerabilities. Check out this upcoming eSeminar and join Chris Sherman of Forrester Research to learn how to deal with the influx of new device …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds