Visual Studio Analyzer includes a preregistered user component called DEBUG_EVENT_SOURCE_USER. If you want to trace some code quickly, without a lot of overhead, such as in a simple console application, you can generate system-defined events from your code using this component.