mouse-over to peek a field after operator->() in Visual Studio while debugging

前端 未结 2 1494
春和景丽
春和景丽 2021-01-14 20:17

I had a tiny class:-

class A{   public:int aField;   }

Below, while debugging, if I hover mouse around aField in a->a

2条回答
  •  渐次进展
    2021-01-14 20:52

    The debugger doesn't recognize the operator->, but you can get the same information by hovering over the smart pointer variable and then the right arrow on the tooltip:

提交回复
热议问题