Unable to debug on Raspberry Pi using python tools for visual studio

谁说胖子不能爱 提交于 2019-12-13 13:46:20

问题


I've been trying to debug a python code on my RPi from VS2013 using python tools for visual studio, but failed all the time to connect to the python console running in Pi,

this is my code 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')

Im using Python3 in both the machines and using the latest version of ptvsd i belive (PTVS 2.1 RC2 VS 2013)

When i try to connect, I'm getting an error message which says

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.

where rgpi is the hostname of my Pi, any help would be much appreciated, thanks

来源:https://stackoverflow.com/questions/26311371/unable-to-debug-on-raspberry-pi-using-python-tools-for-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!