简体   繁体   English

没有可用的来源

[英]No Source available

I am not sure what happened or if I did anything.. Now anytime I try and debug it says no source available on all BCL stuff For example, on a debug.print I get that message with 我不确定发生了什么或者我做了什么..现在我随时尝试调试它说所有BCL的东西都没有可用的源代码例如,在debug.print上我收到的消息是

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

The file 'f:\\dd\\ndp\\fx\\src\\CompMod\\System\\Diagnostics\\Debug.cs' does not exist. 文件'f:\\ dd \\ ndp \\ fx \\ src \\ CompMod \\ System \\ Diagnostics \\ Debug.cs'不存在。

Looking in script documents for 'f:\\dd\\ndp\\fx\\src\\CompMod\\System\\Diagnostics\\Debug.cs'... 查看'f:\\ dd \\ ndp \\ fx \\ src \\ CompMod \\ System \\ Diagnostics \\ Debug.cs'的脚本文档...

Looking in the projects for 'f:\\dd\\ndp\\fx\\src\\CompMod\\System\\Diagnostics\\Debug.cs'. 查看'f:\\ dd \\ ndp \\ fx \\ src \\ CompMod \\ System \\ Diagnostics \\ Debug.cs'的项目。 The file was not found in a project. 在项目中找不到该文件。

Looking in directory 'C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\crt\\src\\'... 查看目录'C:\\ Program Files \\ Microsoft Visual Studio 10.0 \\ VC \\ crt \\ src \\'...

Looking in directory 'C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfc\\'... 查看目录'C:\\ Program Files \\ Microsoft Visual Studio 10.0 \\ VC \\ atlmfc \\ src \\ mfc \\'...

Looking in directory 'C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\atl\\'... 查看目录'C:\\ Program Files \\ Microsoft Visual Studio 10.0 \\ VC \\ atlmfc \\ src \\ atl \\'...

Looking in directory 'C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\include\\'... 查看目录'C:\\ Program Files \\ Microsoft Visual Studio 10.0 \\ VC \\ atlmfc \\ include \\'...

The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: f:\\dd\\ndp\\fx\\src\\CompMod\\System\\Diagnostics\\Debug.cs. 活动解决方案的调试源文件设置表明调试器不会要求用户找到该文件:f:\\ dd \\ ndp \\ fx \\ src \\ CompMod \\ System \\ Diagnostics \\ Debug.cs。

The debugger could not locate the source file 'f:\\dd\\ndp\\fx\\src\\CompMod\\System\\Diagnostics\\Debug.cs'. 调试器找不到源文件'f:\\ dd \\ ndp \\ fx \\ src \\ CompMod \\ System \\ Diagnostics \\ Debug.cs'。

This happens all the time now and I: 这种情况一直都在发生,我:

  1. Don't have an F: 没有F:
  2. Enable .net framework source stepping is unchecked 启用.net框架源步进未选中

Is there some other sneaky setting to make these messages go away? 有没有其他偷偷摸摸的设置让这些消息消失?

f:\\dd\\ndp\\fx\\src\\... is the path to the source file on the machine that the .Net Framework was compiled on. f:\\dd\\ndp\\fx\\src\\...是编译.Net Framework的机器上源文件的路径。

Go to Tools, Options, Debugging, Symbols, and select Only specified modules. 转到“工具”,“选项”,“调试”,“符号”,然后选择“仅指定模块”。
Also, uncheck Enable source server support in Debugging/General. 此外,取消选中Debugging / General中的启用源服务器支持。

在Visual Studio 2010中,我必须转到Tools \\ Options \\ Debugging \\ Just-In-Time并取消选中“Managed”|

I have also seen this when somehow one of the projects in a solution has its build option in configuration manager unset. 当某个解决方案中的某个项目在配置管理器中的构建选项未设置时,我也看到了这一点。 If you see this, go to the Build menu, Configuration Manager, then make sure the affected projects have the Build option checked. 如果看到这一点,请转到Build菜单,Configuration Manager,然后确保受影响的项目已选中Build选项。

还要单击BUILD>配置管理器,确保将“Configuration”选项卡设置为项目的debug,而不是release。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM