(在 Windows 10 中,我安装...\AppData\Local\Enthought\Canopy
了包括Python 2.7
,%PATH%
指向 Canopy)
我已经看到了这个链接,并希望通过它以交互方式调试在 PyXLL 中运行的 Python 代码eclipse_debug.py
。
所以我做了以下事情:
1)在Windows的控制面板中擦除PYTHONPATH
(结果echo %PYTHONPATH%
返回%PYTHONPATH%
)。
eclipse_debug.py
2) 只修改to的第一行eclipse_roots = [r"C:\my_path_to\eclipse"]
。
3) 添加eclipse_debug.py
到pyxll.cfg
4) 定义一个函数hello
5)debug servier
在eclipse中启动,然后启动Excel,然后重新加载PyXLL
这是一个屏幕截图:
1)因此,它表明该功能hello
确实有效。
2)但是,我没有看到任何与调试器相关的 excel 菜单项,而他们的链接承诺This module adds an Excel menu item to attach to the PyDev debugger, and also an Excel macro so that this script can be run outside of Excel and call PyXLL to attach to the PyDev debugger.
换句话说,我看不到这里是如何启用交互式调试的。
谁能告诉我这eclipse_debug.py
应该做什么?