Starting a debug session outside of WinDBG

Aug 6, 2014 at 8:31 PM
Edited Aug 6, 2014 at 8:31 PM
Hi, could I get a quick example of how to start a debug session outside of WinDBG (i.e. section 3.3 of the documentation)? I feel like I'm missing some initialization step because everything I'm trying seems to throw a main.BaseException. For example:
>>> import pykd
>>> pykd.attachKernel()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
__main__.BaseException: Call IDebugClient::AttachKernel failed
Aug 7, 2014 at 9:18 AM
call attachKernel without parameter connectOptions should lead to local kernel debugging ( http://msdn.microsoft.com/en-us/library/windows/hardware/ff553382(v=vs.85).aspx ). By default local debugging is disabled. Check if you setup your system for local kernel debugging.

If you want to attach kernel debugger to target system, you should set connectOptions:
pykd.attachKernel("com:port=com2,baud=57600")