Basically I create dump file:
- Under debug : VC10 Debug->Save dump as…
- Under release: Procexp->right click -> Save dump -> Create Full Dump…
Via 1, I can open the dump file with VC10 (symbol path, Debug source file all setup properly), I can see all the stack information with source code as well as the value of all variable .
Via 2, I can open the dump file with VC10 (symbol path, Debug source file all setup properly), I can see all the stack information with source code BUT values of all variable are not there.
Even if I put the local variable into Debug Watch window,it says Error: Symbol “xxx” not found.
How should I fix this for 2?
How did my setup the dump debugging?
For symbol path:
Action->Set symbol paths -> add pdb path for Debug & Release folder for my project as well as using Microsoft Symbol Servers.
For Debug Source path:
Dump project solution -> Property-> Debug Source Files -> Add my project file folder
BTW: For the same dump file, I have also used WinDbg and I can see all the stack information as well(after setting symbol and source path correctly).
Thanks
Thanks for all the nice inputs but I think I have found the reason myself today!
Reason: It was a build issue,some components the exe need to use have not been build properly !
Note: In my case “mini dump” 7M and “full dump” 112M does the same job, both created from procexp. And once I load them in VS I have access to:
from kernel32.dll!_UnhandleExceptionFiler.
So essentially as long as you set up VC10 like I did above & below, you should be fine:
For symbol path:
Action->Set symbol paths -> add pdb path for Debug & Release folder for my project as well as using Microsoft Symbol Servers.
For Debug Source path:
Dump project solution -> Property-> Debug Source Files -> Add my project file folder