I've installed ptvsd on an Ubuntu 12.04. I'm using VS2012 on Windows 8 and, for completeness, I've installed CPython on Windows (although it isn't entirely clear if I need to have Python on the Windows machine).
I'm copying my test script from my PC to the Ubuntu server into my home directory. The script is
ptvsd.enable_attach(secret = 'joshua')
print('This line occurs after the breakpoint')
I run the script on the Ubuntu server:
and the console window waits. I then attach to the process on my Windows PC. Even though I've set a breakpoint on the Hello World print, the console displays "Hello World" and breaks on "ptvsd.break_into_debugger()". Without that, the script
would run to completion.
and similar modified my installation of ptvsd on the Ubuntu server but the script will not stop running unless I call break_into_debugger :-(.