I have proposed a PyKd script on Stack Overflow (http://stackoverflow.com/a/32060333/480982), but when I run it, it results in an exception in the 12th call to dbgCommand:
```
from pykd import *
str = dbgCommand("sx")
lines = str.split("\n")
for line in lines:
if ("-" in line) and not("Command:" in line):
code = line.split("-")[0].strip()
print code
command = "sxe -c \"bla-bla-bla\" -c2 \"ku-ku-ku\" " + code
print command
dbgCommand(command)
```
PyKd 0.2.0.29 with Python 2.7, x64, also happens in 0.2.0.27. Error message is
```
Traceback (most recent call last):
File "e:\debug\scripts\sxe.py", line 11, in <module>
dbgCommand(command)
BaseException: IDebugControl::ExecuteWide failed
```
Also happens in 0.3.0.25 but the error message is different:
```
Traceback (most recent call last):
File "e:\debug\scripts\sxe.py", line 11, in <module>
dbgCommand(command)
DbgException: Call IDebugControl::Execute failed
HRESULT 0x80040205
```
Comments: ** Comment from web user: strangedev **
```
from pykd import *
str = dbgCommand("sx")
lines = str.split("\n")
for line in lines:
if ("-" in line) and not("Command:" in line):
code = line.split("-")[0].strip()
print code
command = "sxe -c \"bla-bla-bla\" -c2 \"ku-ku-ku\" " + code
print command
dbgCommand(command)
```
PyKd 0.2.0.29 with Python 2.7, x64, also happens in 0.2.0.27. Error message is
```
Traceback (most recent call last):
File "e:\debug\scripts\sxe.py", line 11, in <module>
dbgCommand(command)
BaseException: IDebugControl::ExecuteWide failed
```
Also happens in 0.3.0.25 but the error message is different:
```
Traceback (most recent call last):
File "e:\debug\scripts\sxe.py", line 11, in <module>
dbgCommand(command)
DbgException: Call IDebugControl::Execute failed
HRESULT 0x80040205
```
Comments: ** Comment from web user: strangedev **
When reducing this further, I found out that the following single command is sufficient to reproduce the issue:
```
(InteractiveConsole)
>>> dbgCommand("sxe av")
Traceback (most recent call last):
File "<console>", line 1, in <module>
DbgException: Call IDebugControl::Execute failed
HRESULT 0x80040205
```