【发布时间】:2025-12-23 19:55:11
【问题描述】:
我正在尝试调试控制器,但特定变量未显示工具提示。我尝试重新启动计算机和 Visual Studio 无济于事。
[HttpPut]
[Route("{id}")]
public async Threading.Task<IHttpActionResult> Put([FromUri] Guid id, [FromBody] Api.Document documentModel)
{
var test = await PutOrStatusCodeAsync(documentModel, id).ConfigureAwait(true);
return test;
}
所有其他变量都可以鼠标悬停:
但不是我需要的:
我将它添加到监视列表中,并且收到“表达式评估器中的内部错误”。
我找到了这个帖子:Get "Internal error in the expression evaluator" on "Add watch" function when trying to debug WCF service code (MSVS 2013),但我使用的托管兼容模式是灰色的!
我以管理员身份运行 VS。帮助!
【问题讨论】:
-
我只是随意提出一些想法,但您确定不需要像
var result = await (await firstFunction).secondFunction();这样的事情吗? IE。两个等待,以及这些方法中的任何其他逻辑,可能也需要使用等待。检查的唯一方法是逐步检查!
标签: visual-studio debugging visual-studio-2015 deb