pykd/snippets/pykdmagic.py
SND\kernelnet_cp 976e43a31a [0.2.x] added : startProcess routine extra parameter debugChildren
[0.2.x] fixed : killProcess correctly detaching from target now

git-svn-id: https://pykd.svn.codeplex.com/svn@86120 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00

23 lines
564 B
Python

from IPython.core.magic import Magics, magics_class, line_magic, cell_magic, line_cell_magic
import pykd
@magics_class
class PykdMagic (Magics):
@line_magic
def kd(self,line):
"magic for calling any windbg command"
try:
pykd.dprintln( pykd.dbgCommand(line) )
except pykd.BaseException:
pykd.dprintln("invalid windbg syntax")
return None
def load_ipython_extension(ipython):
ipython.register_magics(PykdMagic)
def unload_ipython_extension(ipython):
pass