The directory .vscode is left here on purposed. For more info, take a look at this link
This stucture relies under the ptvsd python package. Make sure you install it first with pip install ptvsd. The customize.py is only a wrapper that could contais all your code customize. The purpose is to keep the main code as much clean as possible.
At the very top of your python script do:
import customizeSetup the Dockerfile, changing the replace the hello.py for the script you desire to debug remotelly.
CMD [ "python", "hello.py" ]Make the project! The Makefile has three types os configs: install, debug and bash. They are pretty straightfoward. Call make install first to build a docker image that outta be debugged.
The docker image will have the same name as your folder. Make sure you give a recognizable name :D.
The
launch.jsonwill launch the remote debugger and thepreLaunchTaskflag is set to run themake debugtaks under thetasks.json.
The whole setup is exhibit down bellow
This a quite simple example more advance stuffed refer to this link
