I have a legacy system that uses Python 2.7. The application gets built using Buildout and I run the application as bin/django runserver 0.0.0.0:8000
oppose to python manage.py runserver 0.0.0.0:8000
. Is it possible to debug something like this? I have referred to the following post: How to debug Python 2.7 code with VS Code? But I can't seem to get a working .vscode/launch.json
configuration to work. I am running the application in a Docker container which I attach my vscode instance to. I am not trying to to debug the running web server, but the background tasks that the webserver performs using celery. Example: bin/django test_task TaskName --start
I appreciate all of those who reply in advance, thanks!