gimelfarb / ProductionStackTrace

Without deploying PDBs, generate a .NET exception stack trace that can be processed to retrieve source file and line number info
Other
79 stars 8 forks source link

FindPdbFile returns null #4

Open filippobottega opened 9 years ago

filippobottega commented 9 years ago

Hello, I'm using dbghelp.dll version 6.2.9200.16384. The function FindPdbFile returns null because DbgHelp.SymFindFileInPath fails. I noticed that when info.PdbGuid is passed to FindPdbFile it changes value like in the second picture.

productionstacktracedebug1

productionstacktracedebug2

I don't know if this is an issue but I need more help to understand if SymFindFileInPath fails or if there are some errors in passed parameters.

Thank you for your help, Filippo.

gimelfarb commented 9 years ago

@filippobottega Apologies it will take me a while to check, as I am travelling at the moment. The screenshots do look a bit off, the Guid parameter shouldn't change - I wonder if this is something to do with the debugger...

In any case, checkout my answer here, which talks about why symbols may not be found. (Because wrong dbghelp.dll is being loaded)

filippobottega commented 9 years ago

@gimelfarb Thank you for your response, I read your answer but I don't understand which version of dbghelp.dll I have to use. I'm using 6.2.9200.16384. Do you know which is the minimal correct version? Moreover I don't understand how to test if I'm using the correct GUID when I'm calling DbgHelp.SymFindFileInPath. How can I view the GUID using the guidHandle?

Please fell free to tell me if you have some ideas to check in my environment.

Thank you for this interesting project, Filippo