mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-22 13:23:23 +08:00

[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
23 lines
564 B
Python
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
|
|
|