There are three similar options - each of which outputs a message to the debugger (and Memory Validator) using the TRACE() macro.
To observe these events in Memory Validator, enable collection of TRACE messages.
The messages are of the form "Trace Message 1/2/3";
See also examples of trace message monitoring.