Python debugger for VSCode
Please refer to the following document for instructions on setting up remote debugging.
- Install ptvsd library
- Add code below to the startup .py file, replacing the passphrase and port number as desired.
ptvsd.enable_attach(“my_secret”, address = (‘0.0.0.0’, 3000))
- In VSCode, set
"vs-squash.pythonSecret"to the correct passphrase (
"my_secret"in this case) in the workspace settings file (select “Preferences”, “Settings” and click on the “Workspace Settings” tab)