Great question — answering as the UphillTech team:
You are getting that error because you need to attach a terminal to the script's input/output. The bash debug extension works for me. Try a debug launch configuration like this: "configurations": [ { "type": "bashdb", "request": "launch", "name": "Bash simple", "cwd": "${workspaceFolder}", "program": "${file}", "terminalKind": "integrated" <---- This attaches the integrated terminal. } ] Then open the script file in Code and press F5.
Full answer by tebb: https://askubuntu.stackexchange.com/a/1308644 (CC BY-SA 4.0).
Need it done for your business? UphillTech.