|
From: Per W. <pw...@ia...> - 2003-01-07 13:24:00
|
Create your own TRACE #define that calls an own-made function using sprintf() to a buffer, and then emitting the buffer to the windows function OutputDebugString(). That way, you may use any windows debugger or debug tracer program and view the debug output while running your program. If you go to www.sysinternals.com, you can download a nice program DebugView, that will connect to the windows debug stream. /Per W On Tue, 7 Jan 2003, Marc Heiligers wrote: > Hi All, > > I'm having a little trouble debugging. What I'd like, is something like the > VC++ TRACE macros (and maybe TRACE0, TRACE1, ...) to write to stderr, and > then to be able to view that during execution. Unfortunately, although I've > been programming for a long long time, I've never had a need for these > goodies before, so I don't even know where to start. Perhaps someone could > give me a bit of a pointer in the right direction, or a web tutorial, or > something. > > Thanks, > > _____________________________ > Marc Heiligers > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |