microsoft / WinDbg-Samples

Sample extensions, scripts, and API uses for WinDbg.
MIT License
707 stars 117 forks source link

Are there any ways to troubleshoot gallery loading? #59

Closed AlanAtWork closed 2 years ago

AlanAtWork commented 2 years ago

I am including a BinaryComponent in my manifest, based on the manifest.1.xml that ships with the SDK. I am able to .load and use the extension fine on my own but the ExtensionPackage that contains it is not being loaded. I can see from procmon that it is not attempting to open the file. I've looked at the Logs window but I don't see anything relevant. Is there any other logging I can enable/find that might help me discover the problem?

AlanAtWork commented 2 years ago

I think I've found the problem after quite a bit of trial and error: It seems that the Name property on BinaryComponent must match the module name minus the path in the File node. Kind of a gotcha, some sort of diagnostic info would be helpful.

TedyHH commented 2 years ago

Around mid May 2022 we added more logging to help diagnose extension gallery issues and they are displayed via the logs view on WinDbgX (or WinDbgPreview in the MS store). You can search for ExtensionGallery entries there. To display the logs view you can just go to menu View->Logs.

AlanAtWork commented 2 years ago

Interesting. I did check out the log through View->Logs but I don't recall seeing anything germane to my issue, at least.