visual-studio - 摆脱 "There is no source code available for the current location."

标签 visual-studio debugging message debug-symbols step-into

好吧,这是我自己的错,但我似乎无法拯救自己。

每当我尝试进入一个包含调用 .NET 代码的赋值字段的类时,我都会看到一个对话框,其中包含文本“当前位置没有可用的源代码。”:

Screenshot of error message

例如,单步执行以下类的构造函数将给出上述消息:

public class Test
{
    private Stack<String> _Dummy = new Stack<String>();
    public Test() { }
}

我认为这是因为在某个时候我摆弄了符号服务器的设置,但无论我现在摆弄什么,我似乎都无法摆脱该消息。

我的愚蠢在哪里忘记了它做了什么?

<小时/>

我当前的总结options :

  • [ ] 启用地址级调试
  • [x] 仅启用我的代码(仅限托管)
  • [ ] 启用 .NET 框架源代码步进
  • [ ] 启用源服务器支持
  • 符号文件 .pdb 位置 - 空
  • 将符号从符号服务器缓存到此目录:C:\temp(空)

最佳答案

查看是否有一些源文件被意外排除。执行解决方案的属性并查看“通用属性”下的“调试源文件”部分。

关于visual-studio - 摆脱 "There is no source code available for the current location.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/314329/

相关文章:

c++ - scanf 读取格式化输入

c# - IronPython:如何访问回溯局部变量

javascript - 直接在 View 中输出数据和消息

c# - Visual Studio 中的 "Treat all warnings as errors except..."

c++ - Visual Studio 2017 C++ linux 应用程序, header 未复制到目标

javascript - 可以找出是什么干扰了之前运行良好的 jquery 代码吗?

jquery - Apprise 是一个很棒的插件,但有一个小问题。要改变什么?

javascript - Sencha Touch 2 : Ext. Msg.show 并点击任意位置隐藏

c++ - 微软 Visual Studio 社区 2019 : fatal error C1083: Cannot open include file: 'corecrt.h' : No such file or directory

C++ SWIG 生成的代码取决于 Tcl