调试时总是出现“当前不会命中断点 还没有为该文档加载任何符号”这样的错误。出现这种情况的时候,可以按以下几种方式解决:
1.把编译选项设置为"Release"就会这样,因为不产出调试信息. 设置为"Debug"(在工具栏上有).
2. a.打开项目属性页,检查“配置属性”下的“生成”中的细项,其中“生成调试信息”的属性是否设置为true,如果没有,就把它设置为“true”。
b.确认完以上属性后,如果仍然出现该错误,就需要采用如下解决办法了。假设项目名称为V**,这时,可以在以下路径中找到V**.dll的文件:“C:WINDOWSMicrosoft.NETFrameworkv1.1.4322Temporary ASP.NET FilesV**d3cf95ee36ebe08dassemblydl2fb705b8fe8bed8ad_155ec601”,删除该文件后就可以正常调试了。
3. 来自微软的一种解决方法:
引用內文: IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes. http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process. You can work around this by disabling the process growth feature of LCIE. Here's how: 1) Open RegEdit 2) Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main 3) Add a dword under this key called TabProcGrowth 4) Set TabProcGrowth to 0 Since you are running on Windows Server 2003, this is all you should need to do. If you run into the same problem on Vista or newer, you will also need to turn off protected mode.
4. 还有这个方法 添加以下注册表 [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1000] "1207"=dword:00000000