How to debug macros efficiently in VS?

前端 未结 9 1759
情书的邮戳
情书的邮戳 2021-02-01 22:38

I\'ve got a pretty complicated macro inside my (unmanaged) C++ code. Is there any way to expand macros in VS debugger? Or maybe there is another way to debug macros there?

9条回答
  •  醉酒成梦
    2021-02-01 22:41

    If you're using Visual Studio to work on C or C++ projects that use macros, get Resharper for C++ (I believe that there is a trial version). It allows you to click on a macro and expand it completely, or in stages. We have some extremely complicated, nested macros and it's the only way to understand them.

提交回复
热议问题