Visualizing Macro Expansion in Visual Studio
summary
A new Visual Studio 2022 version 17.7 feature shows preprocessor output one expansion step at a time, rendering nested macros like Unreal Engine GENERATED_BODY into a navigable list of transformation steps with back and forward arrows and double arrows to jump to first or last expansion. The tool opens an expansion window, highlights each substitution, and exposes where tokens are inserted or removed so debugging macro-bloat or name collisions pinpoints the exact expansion step that caused the problem.
AI-written summary · about
related talks
01h 00mDebug C++ Without Running
53mDebug C++ Without Running
24mProcedural Macros 101
26mMacros
08mC++ Dynamic Debugging
07mUnreal Engine and Game Development in Visual Studio
10mUnreal Engine Project Support in Visual Studio
23mFast Focus: Sneak Peek at How Visual Studio's Code Editor Works Under the Hood
