Overview
Explore advanced debugging techniques for C++ without running the code in this 40-minute conference talk from C++Now 2018. Learn how to navigate complex C++ features like macros, templates, and compile-time evaluation that often obscure the final compiled code. Discover innovative approaches to macro and typedef debugging, type inference with auto/decltype, and handling preprocessor-dependent code branches. Gain insights into tools and workflows that can enhance C++ development, with demonstrations of features implemented in CLion and ReSharper C++. Understand how to improve code transparency, optimize includes, and prepare for upcoming C++ modules, ultimately enabling more efficient creation of modern C++ code.
Syllabus
Introduction
Agenda
Tricky Samples
The Quote
The Example
Transformation
Macros
Overloading operators
Function overloads
Why we need transparency
Macro debugging
Macro substitution
Type debugging
Type substitution
Templates
Dream
Operators
Overloads
Candidates
Navigating Similar Functions
Includes
Includes Profiler
Includes Optimization Tools
Modules
Taught by
CppNow