简体   繁体   English

调试MiniDump

[英]Debugging MiniDump

I have compiled a Debug-Version of my application in one folder. 我已经在一个文件夹中编译了我的应用程序的Debug-Version。 There are now all dll's, pdb's and the exe with the pdb. 现在所有的dll,pdb和exe都带有pdb。 I have now created a MiniDump of my running application started out of this path with Taskmanager. 现在,我已经使用Taskmanager从此路径开始创建了一个正在运行的应用程序的MiniDump。 Now, I can open this dmp-File in Visual Studio 2010. But when I try to debug, there will be a message, that the symbols could not be found. 现在,我可以在Visual Studio 2010中打开此dmp文件。但是,当我尝试调试时,将出现一条消息,提示找不到符号。 I have added the path to my symbols (pdb) to the symbol-paths in visual studio - but with no success. 我已经将我的符号(pdb)的路径添加到了Visual Studio中的符号路径-但没有成功。 I have also try to load the symbols over the ContextMenu of the modules. 我也尝试过在模块的ContextMenu上加载符号。 It is searching there for MyApp.pdb and I have selected the correct pdb. 它在那里搜索MyApp.pdb并且我选择了正确的pdb。 But I get the message A matching symbol file was not found in this folder . 但是我收到消息, A matching symbol file was not found in this folder

What can I do to make post mortem debug of my MiniDump with Visual Studio 2010 (so it will find my symbols)? 我该如何使用Visual Studio 2010对MiniDump进行事后调试(这样才能找到我的符号)?

  1. Do your pdb's and dll's have the same timestamp? 您的pdb和dll是否具有相同的时间戳? Are they both recreated when you rebuild? 它们都是在重建时重新创建的吗?

  2. Try using chkmatch to ensure your dll and pdb match. 尝试使用chkmatch来确保您的dll和pdb匹配。

Use chkmatch this way: chkmatch -c MyApp.exe MyApp.dll 通过这种方式使用chkmatch: chkmatch -c MyApp.exe MyApp.dll

The output should look something like this 输出应如下所示

Debug information file: 调试信息文件:
Format: PDB 7.00 格式:PDB 7.00
Signature: {ef4bc52f-0161-4e0a-8654-cc1368d7a8a6} Age: 1 签名:{ef4bc52f-0161-4e0a-8654-cc1368d7a8a6}年龄:1

Result: Matched 结果:匹配

You shouldnt need to set the symbol path if your pdb's are in the same location as the exe you are dumping. 如果您的pdb与转储的exe位于同一位置,则无需设置符号路径。

Are you on .NET 4? 您是否在.NET 4上?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM