Visual Studio 2015 智能感知在调试期间未出现
Visual Studio 2015 intellisense not appearing during debug
当我使用手表时收到此错误消息:
Cannot obtain value of the local variable or argument because it is not available at this instruction pointer, possibly because it has been optimized away.
这真的很奇怪,因为我只能在应用程序的某些部分获得智能感知。这个问题最初是在我无法进入我的方法时开始的,所以通过搜索。我在调试器中关闭了仅我的代码选项。
到目前为止我已经尝试过:
- 重启机器
- 清理 + 重建 VS2015
- 我已关闭所有调试优化
我不知道该怎么办。有人可以帮忙吗?
编辑:
发生的代码:
public IList<string> PopulateFilterList(string selectedFields) {
IList<string> ExcludedFields = _homeRepository.GetExcludedFields();
Type t = typeof(Invoice);
return null;
}
我只是想看看 t
编辑:如果我在调试器中选中 'Suppress JIT optimisation on module load' 选项,我将获得智能感知。我有智能感知
在 VS 2015 社区版中
转到调试->选项或工具->选项
并选中调试->常规->抑制模块加载时的 JIT 优化(仅限托管)
如果这不起作用,请检查解决方案中的所有项目是否都在项目属性中取消选中 "Optimize code" 选项。
当我使用手表时收到此错误消息:
Cannot obtain value of the local variable or argument because it is not available at this instruction pointer, possibly because it has been optimized away.
这真的很奇怪,因为我只能在应用程序的某些部分获得智能感知。这个问题最初是在我无法进入我的方法时开始的,所以通过搜索。我在调试器中关闭了仅我的代码选项。
到目前为止我已经尝试过:
- 重启机器
- 清理 + 重建 VS2015
- 我已关闭所有调试优化
我不知道该怎么办。有人可以帮忙吗?
编辑:
发生的代码:
public IList<string> PopulateFilterList(string selectedFields) {
IList<string> ExcludedFields = _homeRepository.GetExcludedFields();
Type t = typeof(Invoice);
return null;
}
我只是想看看 t
编辑:如果我在调试器中选中 'Suppress JIT optimisation on module load' 选项,我将获得智能感知。我有智能感知
在 VS 2015 社区版中
转到调试->选项或工具->选项
并选中调试->常规->抑制模块加载时的 JIT 优化(仅限托管)
如果这不起作用,请检查解决方案中的所有项目是否都在项目属性中取消选中 "Optimize code" 选项。