How to Use Conditional Debug_Out & Trace_Out Debugging Strings

ID: Q153386


The information in this article applies to:

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


Keywords          : kbnokeyword kbDDK 
Version           : 4.00
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 5, 1999