PyKd in x86 WinDbg on x64 machine

Sep 26, 2013 at 8:54 PM
Edited Sep 26, 2013 at 8:54 PM
Hey all,

So I've written a small PyKd script, and everything works fine in x64 WinDbg, however when I try to load PyKd in x86 WinDbg (on my Win7x64 machine), I get the following error:
0: kd> .load pykd.pyd
The call to LoadLibrary(pykd.pyd) failed, Win32 error 0n126
    "The specified module could not be found."
Please check your debugger configuration and/or network access.
Note that that error, however much it may look like a file-not-found error, is different than WinDbg's file not found error:
0: kd> .load pykd.pydasdf
The call to LoadLibrary(pykd.pydasdf) failed, Win32 error 0n2
    "The system cannot find the file specified."
Please check your debugger configuration and/or network access.
Anyone else run into this and know how to fix it?
Sep 26, 2013 at 9:28 PM
Aaaaand never mind, I'm an idiot.

You gotta download and run the x86-setup.exe for WinDebugx86 to work correctly (even on an x64 machine).