Hi, guys
I am tring to integrate the Python into our application, which already
had support for VBScript, JScript via the MS Active Scripting
interface.
I executed E:\Python23\Lib\site-packages\win32comext\axscript\client\pyscript.py
and now I can execute python scripts from our app.
But I failed to invoke the debugger. When I execute (directly from
Windows Prompt) win32comext\axdebug\debugger.py, I got the following
errors:
---------------------------------------------------------
E:\Python23\Lib\site-packages\win32comext\axdebug>debugger.py
About to test the debugging interfaces!
Traceback (most recent call last):
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 201, in ?
test()
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 194, in test
Break()
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 179, in Break
_GetCurrentDebugger().Break()
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 175, in _GetCurrentDebu
gger
currentDebugger = AXDebugger()
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 125, in __init__
contProvider = CodeContainerProvider(self)
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 70, in __init__
self.axdebugger.RefreshAllModules(self.nodes, self)
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 155, in RefreshAllModul
es
RefreshAllModules(nodes, self.root, self.CreateApplicationNode,
(containerProvider,))
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 59, in RefreshAllModule
s
BuildModule(module, builtItems, rootNode, create_node, create_node_args)
File "E:\Python23\Lib\site-packages\win32comext\axdebug\debugger.py",
line 54, in BuildModule
parentNode = built_nodes[parentModule].realNode
KeyError: <module 'pythoncom' from 'C:\WINDOWS\system32\pythoncom23.dll'>
--------------------------------------------------
I tried to add a line before line 54:
+ if built_nodes.get(parentModule):
parentNode = built_nodes[parentModule].realNode
Now MS InterDev shows up, but there's no script window, which ususally
shows the code and indicates the error line/break line.
Is there anything wrong in my usage?
best regards
Ralgh Young
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32