摆脱“当前位置没有可用的源代码”。 [英] Getting rid of "There is no source code available for the current location."
问题描述
好的,这是我自己的错,但我看起来似乎没有拯救自己。
OK, this is my own fault, but I can't seem to rescue myself.
每当我尝试进入具有调用分配字段的类时进入.NET代码,我得到一个对话框,其中包含文本当前位置没有可用的源代码。
Whenever I try to step into a class that has fields with assignments calling into .NET code, I get a dialog box that contains the text "There is no source code available for the current location.":
例如,进入以下类的构造函数给我上述消息:
For instance, stepping into the constructor of the following class would give me the above message:
public class Test
{
private Stack<String> _Dummy = new Stack<String>();
public Test() { }
}
我假设这是因为有些点我喜欢符号服务器的设置,但是无论我现在怎么说,我似乎都不能摆脱这个消息。
I assume this is because at some point I fiddled with the settings for the symbol server, but no matter what I fiddle with now, I can't seem to get rid of that message.
我的愚蠢忘记了它做了什么?
Where has my stupidity forgotten what it did?
我目前的总结选项:
- []启用地址级调试
- [x]启用我的代码(仅管理)
- []启用.NET框架源脚步
- []启用源服务器支持
- 符号文件.pdb位置 - 空
- 从符号服务器缓存到此目录的符号:C:\temp(空)
- [ ] Enable address-level debugging
- [x] Enable Just My Code (Managed Only)
- [ ] Enable .NET framework source stepping
- [ ] Enable source server support
- Symbol file .pdb locations - empty
- Cache symbols from symbol servers to this directory: C:\temp (empty)
推荐答案
查看某些源文件是否被意外排除。执行解决方案的属性,并查看常用属性下的调试源文件部分。
See if some source files are accidentally excluded. Do properties of the solution and look at the Debug Source Files section under Common Properties.
这篇关于摆脱“当前位置没有可用的源代码”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!