我想用WinDbg调试我的.NET应用程序和C++非托管内存分配。WinDbg!堆命令由于缺少符号而不工作
当我尝试运行堆命令,我收到以下错误信息:
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
我怎样才能解决这个问题?
!heap命令不起作用的问题在于调试器需要Windows本身的符号,而不是应用程序。在这种情况下,ntdll.dll的符号。 – Steve