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

Edited Unassigned: [0.3.x] dbgCommand fails on python 3.5 remote connection [13946]

$
0
0
Environment:
OS: Windows 7 x64
Interpreter: 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:49:46) [MSC v.1900 64 bit (AMD64)]
pykd: 0.3.1.4
WinDBG: 10.0.10586.567 X86 and X64


I tried using pykd with ipython notebook to connect to an instance of windbg running a server, but when I try using dbgCommand, I get a DbgException regardless of whether or not I pass a unicode or byte string.

[EDIT]
I don't know if this may have to do with kdlib:kdbeng.cpp:debugCommand instead of pykd, but setting suppressOutput as 0 will allow the commands to go through to the debugger, except you won't get a return string in python.



```
import pykd

pykd.remoteConnect('tcp:port=5005,Server=127.0.0.1')
print(pykd.dbgCommand('dd'))

#Returns the following:
#---------------------------------------------------------------------------
#DbgException Traceback (most recent call last)
#<ipython-input-1-4ea6b5d0e2bd> in <module>()
# 2
# 3 pykd.remoteConnect('tcp:port=5005,Server=127.0.0.1')
#----> 4 print(pykd.dbgCommand('dd'))
#
#DbgException: Call IDebugControl::ExecuteWide failed
#HRESULT 0x80040205
```

Viewing all articles
Browse latest Browse all 1625

Trending Articles



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