Microsoft KB Archive/153386

{|
 * width="100%"|

How to Use Conditional Debug_Out & Trace_Out Debugging Strings

 * }

Q153386

-

The information in this article applies to:


 * Microsoft Win32 Device Driver Kit (DDK) Windows 95

-

To avoid adding extra code to your source just to test or branch around debug message strings, you can use the built-in conditional macros in addition to the more plain Trace_Out and Debug_Out. An inspection of the DEBUG.H or DEBUG.INC files shows the following syntax:

Trace_Out## or Debug_Out## where ## is one of the following flags/conditions:

S, C, A, AE, B, BE, E, Z, G, GE, L, LE, O,

NS,NC,NA,NAE,NB,NBE,NE,NZ,NG,NGE,NL,NLE,NO,

EAXZ,EAXNZ,ECXZ,ECXNZ

example: Trace_OutC "carry set - function call failed with AX = #AX"