- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.3k
Description
I use the Python extension to debug Python projects and have some Flask and Quart apps that I like to debug together in a compound configuration (using flask run... and quart run...). Occasionally, especially after the first run of the compound configuration, the configurations all try to run in the same Python Debug Console terminal window, e.g.:
root@81bf691c0b5a:/code#  env DEBUGPY_LAUNCHER_PORT=46663 /opt/conda/envs/my_env/bin/python /root/.local/share/code-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/wheels/debugpy/launcher -m quart run -h 0.0.0.0 -p 5000 
 env DEBUGPY_LAUNCHER_PORT=44851 /opt/conda/envs/my_env/bin/python /root/.local/share/code-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/wheels/debugpy/launcher -m flask run -h 0.0.0.0 -p 5002 
 env DEBUGPY_LAUNCHER_PORT=38913 /opt/conda/envs/my_env/bin/python /root/.local/share/code-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/wheels/debugpy/launcher -m flask run -h 0.0.0.0 -p 5001 
 env DEBUGPY_LAUNCHER_PORT=45271 /opt/conda/envs/my_env/bin/python /root/.local/share/code-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/wheels/debugpy/launcher -m quart run -h 0.0.0.0 -p 5003 
Of course, this does actually launch multiple configurations; the first one (random) launches and the others wait for the exit code of the previous one(s). Also, the debugger then complains of a timeout attaching to the subsequent ones that never start.
Expected behavior is to launch a separate Python Debug Console terminal window for each configurtion.
I just try it a few times, and after a few times, it behaves as expected one time, and then I have to repeat.