快速监视窗口不会在Visual Studio for C ++ / CLI项目中显示变量值 [英] Quick watch window not showing the variable value in Visual Studio for C++/CLI project

查看:274
本文介绍了快速监视窗口不会在Visual Studio for C ++ / CLI项目中显示变量值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Visual Studio对C ++ / CLI的支持是可怕的。但是,在进行快速观看时,我遇到了一个奇怪的问题。我观察的变量在范围内,它有价值。但是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.


  1. 检查启用.net源步进并启用源服务器。

  2. 然后加载所有符号

  3. 做了一个干净的构建,再次删除它并启用我的代码

  4. 清理构建,再次获得正确的调试符号!

  1. checking enabling .net source stepping and enable source server.
  2. it then loaded all symbols
  3. made a clean build, removed it again and enabled just my code
  4. clean build, voila i got correct debug symbols again!

这篇关于快速监视窗口不会在Visual Studio for C ++ / CLI项目中显示变量值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆