Share via

Debug Output window

drjackool 956 Reputation points
2021-01-20T05:03:12+00:00

Hi
In Visual C++ debug output window when using TRACE macro to print something, following string is added before TRACE input,

F:\Documents\Visual Studio 2019\Projects\Hello\Hello.cpp(22) : atlTraceGeneral - Hello

Is there a way to disable debug prefix to show just following?
Hello

Developer technologies | Visual Studio | Debugging
0 comments No comments

Answer accepted by question author

Dylan Zhu-MSFT 6,436 Reputation points
2021-01-20T09:05:04.827+00:00

Hi drjackool,

You can undefine ATLTRACE and redefine it yourself. More information: Getting rid of atlTraceGeneral category shown in ATLTRACE output

Best Regards, Dylan

If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.