Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TRACE
TRY
Collapse the table of content
Expand the table of content

TRACE

Sends the specified string to the debugger of the current application.

TRACE(exp ) 
TRACE(DWORD category, UINT level, LPCSTR lpszFormat, ... )

See ATLTRACE2 for a description of TRACE. TRACE and ATLTRACE2 have the same behavior.

In the debug version of MFC, this macro sends the specified string to the debugger of the current application. In a release build, this macro compiles to nothing (no code is generated at all).

For more information, see Debugging MFC Applications.

Header: afx.h

Community Additions

ADD
Show:
© 2015 Microsoft