Open cbiesinger opened 5 years ago
WinDbg preview looks for extensions in:
%LOCALAPPDATA%\Dbg\EngineExtensions
%LOCALAPPDATA%\Dbg\EngineExtensions32
(for 32bit DLLs)
You should be able to see those folders when you'll run .extpath
in debugger.
Not sure if those paths are documented somewhere (it will be great if they were).
Oh, thanks! But it doesn't work for me? With the extension from https://github.com/MicrosoftEdge/JsDbg: 0:000> !jsdbg No export jsdbg found 0:000> .load jsdbg The call to LoadLibrary(jsdbg) failed, Win32 error 0n2 "The system cannot find the file specified." Please check your debugger configuration and/or network access.
I don't see anything related in https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugging-using-windbg-preview either
But setting %_NT_DEBUGGER_EXTENSION_PATH% did work for me (as did .extpath+, but that's not persistent. Maybe make a persistent setting for it?)
With "classic" windbg, you can copy an extension DLL under the install directory.
With Windbg Preview, that directory seems to be made readonly (by the store installer, I guess). There should be some way to autoload extensions. Maybe a well-known directory in %USERPROFILE%, or something under AppData, or a setting.