How to Use Conditional Debug_Out & Trace_Out Debugging Strings (153386)



The information in this article applies to:

  • Microsoft Win32 Device Driver Kit (DDK) Windows 95

This article was previously published under Q153386
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"

REFERENCES

Win95DDK\INC32\DEBUG.H
Win95DDK\INC32\DEBUG.INC

Modification Type:MinorLast Reviewed:5/24/2004
Keywords:KB153386