visual studio code debug python program launched from bash script code example
Example: remote python running line by line visual code
python -m debugpy --listen 5678 ./myscript.py
python -m debugpy --listen 5678 ./myscript.py