问题:
dubug时出现以下现象:
“TestIfly.exe”:已加载“E:workspacevcTestIflyDebugTestIfly.exe”,已加载符号。
“TestIfly.exe”: 已加载“C:WindowsSysWOW64ntdll.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64kernel32.dll”,Cannot findor open the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64KernelBase.dll”,Cannot findor open the PDB file
“TestIfly.exe”: 已加载“C:InterReco 4.1binisr_api.dll”,Cannot findor open the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64user32.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64gdi32.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64lpk.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64usp10.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64msvcrt.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64advapi32.dll”,Cannot findor open the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64sechost.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64rpcrt4.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64sspicli.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64cryptbase.dll”,Cannot findor open the PDB file
“TestIfly.exe”:已加载“C:Windowswinsxsx86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5msvcp80.dll”,Cannotfind or open the PDB file
“TestIfly.exe”:已加载“C:Windowswinsxsx86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5msvcr80.dll”,Cannotfind or open the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64version.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64msvcr100d.dll”,已加载符号。
“TestIfly.exe”: 已加载“C:WindowsSysWOW64imm32.dll”,Cannot find oropen the PDB file
“TestIfly.exe”: 已加载“C:WindowsSysWOW64msctf.dll”,Cannot find oropen the PDB file
程序“[8868] TestIfly.exe: 本机”已退出,返回值为 126 (0x7e)。
参照:http://topic.csdn.net/u/20101108/14/49f2a594-8da2-4f5e-a01d-dd08b29f961b.html
总结如下:
原因是程序输出的地方是系统而不是vs2010。
Ctrl + F5运行就可以了
或者在cmd命令行下执行程序。
或者
把"Microsoft Symbol Servers"勾上(Tools -> Options ->Debugging -> Symbols).