C++ - “当前不会命中断点 还没有为该文档加载任何符号”解决方法

调试时总是出现“当前不会命中断点 还没有为该文档加载任何符号”这样的错误。出现这种情况的时候,可以按以下几种方式解决:

1.把编译选项设置为"Release"就会这样,因为不产出调试信息.   
  设置为"Debug"(在工具栏上有).

2. a.打开项目属性页,检查“配置属性”下的“生成”中的细项,其中“生成调试信息”的属性是否设置为true,如果没有,就把它设置为“true”。 

b.确认完以上属性后,如果仍然出现该错误,就需要采用如下解决办法了。假设项目名称为VPN,这时,可以在以下路径中找到VPN.dll的文件:“C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\vpn\d3cf95ee\36ebe08d\assembly\dl2\fb705b8f\e8bed8ad_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_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1000] 
"1207"=dword:00000000 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值