Iam trying to remote dubug python in VSC:
It is main.py file:
print(\'Hello, World\')
debug.py:
import ptvsd
ptvsd.
I think the problem is that your docker process terminates.
You start your debug.py as a command in the Dockerfile. So Docker starts the task, waits for your debugger to attach and then exits because there is nothing more to do.
Seems you need to place your code into debug.py as the easiest try. And please remember that you cannot place the breakpoint right after
ptvsd.wait_for_attach()
so you'd better write some spare lines between.
Hope this helps.