快速监视窗口不显示在Visual Studio的C ++ / CLI项目的变量值窗口、快速、项目、变量值

2023-09-04 02:47:09 作者:趁年轻去努力

我知道,C ++ / CLI Visual Studio的支持是可怕的。但我得到一个奇怪的问题做一个的快速手表的时候。而我看​​的变量的范围和它的价值。但是VS说,变量不在范围之内。查看图片

I know that Visual Studio support for C++/CLI is terrible. But I am getting a weird issue when doing a Quick watch. The variable which I am watching is in the scope and it has value. But VS says, the variable is not in the scope. See the image

这将是巨大的,如果有人能提出一个解决方法。或者,这是VS一个错误?

It would be great if someone can suggest a workaround. Or is this a bug with VS?

推荐答案

其实,我做它通过这些步骤的工作,不知道为什么,这应该是解决方案,但。

I actually made it work by these steps, not sure why this should be the solution though.

检查启用.NET源步进,使源服务器。 https://m.xsw88.com/allimgs/daicuo/20230904/6912.png.jpg 在它再装所有符号 在做了一个干净的构建,再删除,并启用只是我的code 在干净的构建,瞧我再次得到了正确的调试符号! checking enabling .net source stepping and enable source server. https://m.xsw88.com/allimgs/daicuo/20230904/6912.png.jpg it then loaded all symbols made a clean build, removed it again and enabled just my code clean build, voila i got correct debug symbols again!