Knowledge Base

How to Use Conditional Debug_Out & Trace_Out Debugging Strings

Article ID: 153386

Article Last Modified on 5/24/2004


APPLIES TO


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

Keywords: KB153386