Visual Studio 2015 Debugging: Can't expand local variables?

后端 未结 10 574
离开以前
离开以前 2020-11-29 05:43

I\'m using Visual Studio 2015 preview, and I\'m trying to debug my project. I was using VS 2012 previously, and depended largely on being able to hover over and expand local

10条回答
  •  自闭症患者
    2020-11-29 06:16

    I'm working on a 'Debug' configuration that have no optimization set, so I repeat :

    Using managed compatibility : can use breakpoint, but cannot watch values

    Not using managed compatibility : cannot use breakpoint, but can watch values

    Hence using the assert as breakpoint when not using managed compatibility allows you to both stop where needed AND watch values.

    Try it.

    I provided you with my trick because I'm just facing the same issue right now, 1w before final delivery. And MS pretend planning a complete fix for 2016 in update 2 is just unbearable.

    BTW, this makes another perfect 'break' :

    int *p = NULL, i = 1 / *p;

    Kochise

提交回复
热议问题