Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 没有可用的来源_C#_.net_Visual Studio_Visual Studio Debugging - Fatal编程技术网

C# 没有可用的来源

C# 没有可用的来源,c#,.net,visual-studio,visual-studio-debugging,C#,.net,Visual Studio,Visual Studio Debugging,我不知道发生了什么,也不知道我是否做了什么。。 现在,每当我尝试调试时,它都会说所有BCL内容都没有可用的源代码 例如,在debug.print上,我使用 查找的源 'f:\dd\ndp\fx\src\CompMod\System\Diagnostics\Debug.cs'。 校验和:MD5{40 74 18 44 a8 15 28 2e 54 75 5e 40 d1 5f 6a 0} 档案 'f:\dd\ndp\fx\src\CompMod\System\Diagnostics\Debug.c

我不知道发生了什么,也不知道我是否做了什么。。 现在,每当我尝试调试时,它都会说所有BCL内容都没有可用的源代码 例如,在debug.print上,我使用

查找的源 'f:\dd\ndp\fx\src\CompMod\System\Diagnostics\Debug.cs'。 校验和:MD5{40 74 18 44 a8 15 28 2e 54 75 5e 40 d1 5f 6a 0}

档案 'f:\dd\ndp\fx\src\CompMod\System\Diagnostics\Debug.cs' 不存在

在脚本文档中查找 'f:\dd\ndp\fx\src\CompMod\System\Diagnostics\Debug.cs'

在项目中寻找 'f:\dd\ndp\fx\src\CompMod\System\Diagnostics\Debug.cs'。 在项目中找不到该文件

正在查找目录“C:\Program” 文件\Microsoft Visual Studio 10.0\VC\crt\src\'

正在查找目录“C:\Program” 文件\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'

正在查找目录“C:\Program” 文件\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'

正在查找目录“C:\Program” 文件\Microsoft Visual Studio 10.0\VC\atlmfc\include\'

的调试源文件设置 活性溶液表明 调试器不会要求用户查找 文件: f:\dd\ndp\fx\src\CompMod\System\Diagnostics\Debug.cs

调试器找不到 源文件 'f:\dd\ndp\fx\src\CompMod\System\Diagnostics\Debug.cs'

现在这种情况经常发生,我:

  • 没有F:
  • 未选中启用.net framework源单步执行

  • 是否有其他一些狡猾的设置使这些消息消失?

    f:\dd\ndp\fx\src\…
    是编译.Net Framework的计算机上源文件的路径

    转到工具、选项、调试、符号,然后仅选择指定的模块。

    另外,在Debugging/General中取消选中Enable source server support。

    在Visual Studio 2010中,我必须及时转到Tools\Options\Debugging\并取消选中“Managed”

    当解决方案中的某个项目在configuration manager中的build选项未设置时,我也看到了这一点。如果您看到此情况,请转到“生成”菜单“配置管理器”,然后确保选中了受影响的项目的“生成”选项。

    还请单击“生成”>“配置管理器”,确保“配置”选项卡设置为“为您的项目调试”,而不是释放。

    转到
    工具
    选项
    调试
    符号
    并选择
    仅指定模块

    这对我有用


    谢谢,我选中了“启用源服务器支持”复选框,并且只选择了指定的模块。看来,阻止这种情况发生的唯一方法是启用“仅我的代码”,然后这些消息就会消失。我注意到,当我安装Ants套件时,它禁用了这一功能。这是正常功能吗?请尝试清空符号缓存。