我一直在尝试使用 Visual Studio 的 python 工具从 VS2013 调试我的 RPi 上的 python 代码,但一直无法连接到在 Pi 中运行的 python 控制台,
这是我的代码 frag.in Pi:
import ptvsd
ptvsd.enable_attach('secret',address = ('0.0.0.0',5678))
ptvsd.wait_for_attach()
for i in range(10):
print (i)
print ('hello visual studio')
我在两台机器上都使用 Python3 并使用我相信的最新版本的 ptvsd (PTVS 2.1 RC2 VS2013)
当我尝试连接时,我收到一条错误消息,上面写着
Remote server at tcp://secret@rgpi:5678/ is not a Python tools for Visual Studio remote debugging server, or it's version is not supported.
其中 rgpi 是我的 Pi 的主机名,任何帮助将不胜感激,谢谢