[python-win32] Python 2.6: Windows Scripting Host (WSH) compatible debugger
Udo Weik
WeikEngOff at aol.com
Thu Feb 14 10:32:07 CET 2013
Hello again Mark,
>> thanks for your answer.
>>
>>> Debugging should work "out of the box" - what problems are you seeing?
>>
>> I'm using a Delphi-component. That component checks whether the
>> ActiveX debug interface is available (Windows Scripting Host, WSH).
>> When I start my app, I get the following error message:
>>
>> Project XYZ.exe raised exception class EOleSysError with message
>> 'Script engine does not support debugging.'.
>
> You could try registering the script engine with debugging support - change to the win32comext/axscript/client directory and execute "python pyscript.py --debug". Then, before loading the script
> engine, execute "python -m win32traceutil". In the win32traceutil window you should see some output generated - hopefully something there will point us in the right direction.
yep, many thanks for that hint. Tried it with the following result:
...\Python26\Lib\site-packages\win32comext\axscript\client>python pyscript.py --debug
Registered: Python (for debugging)
...Python26\Lib\site-packages\win32comext\axscript\client>python -m win32traceutil
Collecting Python Trace Output...
Object with win32trace dispatcher created (object=None)
in <win32com.axscript.client.pyscript.PyScript instance at 0x03436AA8>._InvokeEx_-InitNew() [1,0,None]
in <win32com.axscript.client.pyscript.PyScript instance at 0x03436AA8>._InvokeEx_-SetScriptSite(<PyIActiveScriptSite at 0x02B64BA0 with obj at 0x02159724>,) [1,0,None]
Debugging extensions (axdebug) module does not exist - debugging is disabled..
in <win32com.axscript.client.pyscript.PyScript instance at 0x03436AA8>._QueryInterface_ with unsupported IID IActiveScriptDebug32 ({51973C10-CB0C-11D0-B5C9-00A0244A0E7A})
in <win32com.axscript.client.pyscript.PyScript instance at 0x03436AA8>._QueryInterface_ with unsupported IID IActiveScriptDebug32 ({51973C10-CB0C-11D0-B5C9-00A0244A0E7A})
I'm a little bit confused - registering for debugging was possible, but
the debug extensions aren't found. Just as a hint: I didn't use the standard
installation pathes.
Many thanks and greetings
Udo
>>> On 11/02/2013 3:07 AM, Udo Weik wrote:
>>>> Hello,
>>>>
>>>> I want to use the standard Python 2.6 distribution from
>>>> www.python.org as a Windows Scripting Host (WSH) scripting
>>>> language. Is there any way to get debugging working with the
>>>> WSH?
>> _______________________________________________
>> python-win32 mailing list
>> python-win32 at python.org
>> http://mail.python.org/mailman/listinfo/python-win32
>
More information about the python-win32
mailing list