I have a GUnicorn/Falcon web service written in Python 3.4 on Ubuntu 14.04. I'd like to use the VSCode debugger to debug this service. I currently start the process with the command
/usr/local/bin/gunicorn --config /webapps/connects/routerservice_config.py routerservice:api
which starts routerservice.py using the config file routerservice_config.py. I have workers set to 1 in the config to keep it simple.
I've installed the Python extension to VSCode so I have the Python debugging tools. So how do I attach to the GUnicorn worker process or have VSCode run the startup command and auto attach.
Thanks, Greg