0

このためにインターネットで入手できるいくつかの解決策を試してきましたが、どれもうまくいきませんでした。

MFC ソース コードのどのメソッドにもステップ インできません。

出力ウィンドウに次のように表示されます。

'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp.exe', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Exports loaded.
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib1.dll', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\mfc100ud.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msimg32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Exports loaded.
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib2.dll', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\secur32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\vcomp100d.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18120_none_72d2e82386681b36\GdiPlus.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Exports loaded.
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib3.dll', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\wsock32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Exports loaded.
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib4.dll', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\comdlg32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msxml6.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\urlmon.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-ole32-l1-1-0.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-shlwapi-l1-1-0.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-advapi32-l1-1-0.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-user32-l1-1-0.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-version-l1-1-0.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-normaliz-l1-1-0.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\normaliz.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\iertutil.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\wininet.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\api-ms-win-downlevel-shlwapi-l2-1-0.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'C:\Windows\SysWOW64\msxml6.dll'
MyLib2.DLL Initializing!
MyLib3.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-da-DK.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-da-DK.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-en-GB.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-en-GB.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-ja-JP.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-ja-JP.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-ko-KR.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-ko-KR.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-pt-PT.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-pt-PT.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-zh-CHS.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-zh-CHS.dll'
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msxml6.dll', Exports loaded.
NestingEngineLib.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver1.drv', Symbols loaded.
MyDriver1.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver2.drv', Symbols loaded.
MyDriver2.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver3.drv', Symbols loaded.
MyDriver3.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver4.drv', Symbols loaded.
MyDriver4.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver5.drv', Symbols loaded.
MyDriver5.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver6.drv', Symbols loaded.
MyDriver6.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver7.drv', Symbols loaded.
MyDriver7.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver8.drv', Symbols loaded.
MyDriver8.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver9.drv', Symbols loaded.
MyDriver9.DLL Initializing!
'MyApp.exe': Loaded 'ImageAtBase0x5280000', Loading disabled by Include/Exclude setting.
'MyApp.exe': Unloaded 'ImageAtBase0x5280000'
MyDriver2.DLL Terminating!
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyDriver2.drv'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver10.drv', Symbols loaded.
MyDriver10.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver11.drv', Symbols loaded.
MyDriver11.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver12.drv', Symbols loaded.
MyDriver12.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver13.drv', Symbols loaded.
MyDriver13.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver14.drv', Symbols loaded.
MyDriver14.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver15.drv', Symbols loaded.
MyDriver15.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver16.drv', Symbols loaded.
MyDriver16.DLL Initializing!
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver17.drv', Symbols loaded.
MyDriver17.drv Initializing!
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\dhcpcsvc.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\wbem\wbemprox.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\wbemcomn.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\cryptsp.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\rsaenh.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\RpcRtRemote.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\wbem\wbemsvc.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\wbem\fastprox.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\ntdsapi.dll', Exports loaded.
The thread 'Win32 Thread' (0x29ec) has exited with code 0 (0x0).
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\nlaapi.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\NapiNSP.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\pnrpnsp.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\mswsock.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\dnsapi.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\winrnr.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\Windows Live\WLIDNSP.DLL', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\rasadhlp.dll', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL', Exports loaded.
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\wship6.dll', Exports loaded.
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp-da-DK.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyApp-da-DK.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp-en-GB.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyApp-en-GB.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp-ja-JP.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyApp-ja-JP.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp-ko-KR.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyApp-ko-KR.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp-pt-PT.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyApp-pt-PT.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp-zh-CHS.dll', Binary was not built with debug information.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyApp-zh-CHS.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyApp-en-GB.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-en-GB.dll', Exports loaded.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-en-GB.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-ja-JP.dll', Exports loaded.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-ja-JP.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-ko-KR.dll', Exports loaded.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-ko-KR.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-pt-PT.dll', Exports loaded.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-pt-PT.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-zh-CHS.dll', Exports loaded.
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-zh-CHS.dll'
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib2-en-GB.dll', Exports loaded.
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyLib3-en-GB.dll', Binary was not built with debug information.
Warning: no document names in string for template #1309.
Warning: no document names in string for template #1309.
'MyApp.exe': Loaded 'd:\src\output\Win32\Debug_Unicode\MyDriver2.drv', Symbols loaded.
MyDriver2.DLL Initializing!
'MyApp.exe': Loaded 'ImageAtBase0x5ec0000', Loading disabled by Include/Exclude setting.
'MyApp.exe': Unloaded 'ImageAtBase0x5ec0000'
MyDriver2.DLL Terminating!
'MyApp.exe': Unloaded 'd:\src\output\Win32\Debug_Unicode\MyDriver2.drv'
'MyApp.exe': Loaded 'C:\Windows\SysWOW64\WindowsCodecs.dll', Exports loaded.
1'MyApp.exe': Loaded 'C:\Windows\SysWOW64\msxml3.dll', Exports loaded.
Warning: no document names in string for template #1309.
Warning: no document names in string for template #1309.

ここで奇妙なのは、他のすべてのシステム ライブラリが「エクスポートがロードされました」と表示することです。、しかしmfc100ud.dllは「PDBファイルが見つからないか、開くことができません」と言います。

PDBファイルが欠落しているようですが、私は持っています。または、少なくとも私はそれを持っていると思います。

マイ シンボルの構成: マイシンボル設定

マイ ディレクトリ: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib\amd64 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib\amd64

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib\ia64 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib\ia64

C:\Windows\symbols\dll C:\Windows\symbols\dll

これは、上書きしたテーマ クラスのメソッドにブレークポイントを設定したときに発生したことです。コール スタック ペインは、関数を呼び出しているメソッドではなく、mfcu100ud.dll 行でいっぱいです。これらの行のいくつかをクリックすると、[逆アセンブリ] ウィンドウしか表示されません! ステップイン: OnDrawDefaultRibbonImage

別のアプリで、CMFCOutlookBarPane::Create にステップ インしようとしましたが、実際のソース コードではなく、関数の名前とメモリ アドレスを含むウィンドウしか表示されません。 ステップ イン CMFCOutlookBarPane::Create

以前はこれができたのに、今はできないことを知っています。この問題は、Windbg を使用してメモリ ダンプを分析するためにいくつかのシンボルをダウンロードしたときに発生したという仮説を立てていますが、確かではありません。

PDB ファイルが見つからないなど、何か問題がありますか? 助けてください!

4

1 に答える 1

1

対応するファイルは、フォルダー C:\Windows\symbols\dll にインストールする必要があります。

これらは VS-Setup でインストールされます。VS-Installation の修復を試みることができます...

于 2013-11-07T20:49:47.973 に答える