Using the Messages View
Each window has an associated message stream. You can view this message stream in the Messages view. You can create a Messages view for a thread or process as well. This allows you to view messages sent to all windows owned by a specific process or thread, which is particularly useful for capturing window initialization messages.