While remote debugging a simple Python program on a Raspberry, from a PC, it seems to work correctly (hitting F10 or F5 does what it should) except that I cannot see the current line debugged (the current line is not highlighted).
Also, the breakpoints have gray circle instead of red one, so I thing I miss something.
Code being debugged (commented out lines are un-commented on remote machine, of course):
# import ptvsd
# ptvsd.enable_attach('my_secret', address=('192.168.1.27', 3000))
# ptvsd.wait_for_attach()
# ptvsd.break_into_debugger()
print("Hello, World!")
for i in range(10):
print("i = {0}".format(i))
and launch.json python attach config:
{
"name": "Python: Attach",
"type": "python",
"request": "attach",
"localRoot": "${workspaceFolder}",
"remoteRoot": "${workspaceFolder}",
"port": 3000,
"secret": "my_secret",
"host": "192.168.1.27"
},
Any idea?
EDIT: ptvsd version is 3.0.0 on both machines
Thanks a lot
Patrice