Quantcast
Channel: Bartek's coding blog
Viewing all articles
Browse latest Browse all 325

Improving Print Logging with Line Pos Info & Modern C++

$
0
0

No matter how proficient you are, I think, you might still use one of the primary methods of debugging: trace values using printf, TRACE, outputDebugString, etc… and then scan the output while debugging.

Adding information about the line number and the file where the log message comes from is a very efficient method that might save you a lot of time. In this post, I’ll describe one trick that is especially useful in Visual Studio but might also help in other IDE/compilers.

I’ll also show you how modern C++ and C++20 make code nicer.

Read more...

Viewing all articles
Browse latest Browse all 325

Trending Articles