【问题标题】:Visual Studio mouse over debugging doesn't work for particular variableVisual Studio 鼠标悬停调试不适用于特定变量
【发布时间】: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


【解决方案1】:

我想通了。它是灰色的,因为我目前正在调试。一旦我停止了这个过程,它就可以检查了。

【讨论】:

    最近更新 更多