DEBUGMSG

Example:

DEBUGMSG(TRUE, (TEXT("Testing item count against maximum %u\r\n"),
dwMaxNumberOfItems));
DEBUGMSG(dwCurrentNumberOfItems
>= dwMaxNumberOfItems,
(TEXT(
"Invalid item count! Found %u, expected less than %u\r\n"),
dwCurrentNumberOfItems, dwMaxNumberOfItems));

 

 

 

OUtput:

Testing item count against maximum 68
Invalid item count
! Found 343, expected less than 68

 

Requirements

OS Versions: Windows CE OS 2.10 and later
Header: Dbgapi.h
Link Library: none