由于缺少符号,WinDbg!heap命令无法正常工作

Cap*_*mic 4 c++ debugging windbg

我正在尝试使用WinDbg调试我的.NET应用程序与C++非托管内存分配.

当我尝试运行!heap命令时,我收到以下错误消息:

0:022> !heap
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\system32\KERNEL32.dll - 
*************************************************************************
***                                                                   ***
***                                                                   ***
***    Your debugger is not using the correct symbols                 ***
***                                                                   ***
***    In order for this command to work properly, your symbol path   ***
***    must point to .pdb files that have full type information.      ***
***                                                                   ***
***    Certain .pdb files (such as the public OS symbols) do not      ***
***    contain the required information.  Contact the group that      ***
***    provided you with these symbols if you need this command to    ***
***    work.                                                          ***
***                                                                   ***
***    Type referenced: ntdll!_HEAP_ENTRY                             ***
***                                                                   ***
*************************************************************************
Invalid type information
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个错误?

Joh*_*ohn 5

使用以下命令修复符号路径:

.symfix
.reload
Run Code Online (Sandbox Code Playgroud)