Quantcast
Channel: Python extension for WinDbg
Viewing all articles
Browse latest Browse all 1625

New Post: How to do continuous Step Debugging[Step Over/Into] using PyKd

$
0
0
Do you want to trace the first thread?
>>> import pykd
>>> pykd.attachProcess(4828)
0
>>> pykd.setCurrentThread( pykd.getProcessThreads()[0] )
>>> bp = pykd.setBp( pykd.getStack()[0].ip )
>>> pykd.go()
pykd.executionStatus.Break
>>> bp.remove()
>>> for i in range(128):
...   print pykd.findSymbol(pykd.getStack()[0].ip)
...   x =pykd.trace()
...
USER32!GetMessageW+54
USER32!GetMessageW+58
USER32!GetMessageW+59
calc!WinMain+1dca
calc!WinMain+1dcd
calc!WinMain+1cbd
calc!WinMain+1cc4
calc!WinMain+1ccb
calc!WinMain+1cd3
USER32!TranslateAcceleratorW
USER32!TranslateAcceleratorW+4
USER32!TranslateAcceleratorW+7
USER32!TranslateAcceleratorW+d
....

Viewing all articles
Browse latest Browse all 1625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>