Download demo project - 6 Kb
Introduction
When writing TRACE statements to the output window in DevStudio it is often
useful to be able to go directly to the section of code that produced the TRACE
output. Doing this is simple - you just use the __FILE__ and __LINE__
macros in your TRACE statements.
If you format your TRACE statement as follows:
TRACE(_T("%s(%i) : Please double click on me!\n"), __FILE__,__LINE__);
then you can double click on the TRACE output line and be taken directly
to the line of code the produced the TRACE statement.
An example of using this can be find in the enclosed example. Note that in the example I used
the CDuration class by Laurent Guinnard.