Can PyKD be used in Visual Studo debugger?

Sep 19, 2013 at 6:50 PM
Edited Sep 19, 2013 at 6:58 PM
Can PyKD be used in Visual Studo debugger?

".load <path>\pykd.pyd" seems to succeed, but then any commands, like "!py help" just cause debugger to enter run mode and nothing more happens.

If this worked, it would be extremely useful for data visualization when debugging numeric applications.
Actually, the ultimate awesomeness would be integration of PyKD with PTVS. Imagine being able to plot your data right there in the debugger!
Sep 20, 2013 at 6:06 AM
The simple answer is no :))

I know one case of using pykd with VS: VS2012 and driver debugging. You can load pykd and use it with immidiate debugger. But It is extremely uncomfortable. WinDBG for kernel debugging is best way.

So, I dont see how we can use pykd with VS.

You can use pytools for pykd script debugging. I use pytools everyday. A little sample:
import sys
from mydumpanalyzer import DumpAnalyzer

def main():
    dumpName = sys.argv[1]
    loadDump( dumpName )
if __name__ == "__main__":
Then you can run and debug this script with VS.