VS2010调试程序启动时加载程序非常慢的

本文介绍了解决VS2010在Win7环境下调试程序时速度缓慢的方法。通过调整“符号”设置,避免加载不必要的PDB文件,从而显著提升调试速度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在win7上使用VS2010编译某程序无误后,然后以release态并可输出调试信息时调试程序。console窗口也出现了,但是加载相关信息是特别慢。并出现如下信息:


win32.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'win32.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'win32.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'win32.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'win32.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file
'win32.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'win32.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'win32.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'win32.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'win32.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file


在网上搜了下,并查看自己的配置,原来是在自己在“工具-->选项-->调试-->符号”中勾选了“Microsoft符号调试器“。这让我想起之前遇到类似问题,勾选了此项。当时用完之后,应当去掉这个勾选的。


去掉这个勾选之一,重新启动程序,加载内容很快,代码走起。。。

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值