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 のホスト名です。