I am using VScode and I would like to debug a program that is used with a pipe command.
In the console, I run my program with
cat dataset.txt | python my_program.py
How can I configure VSCode to pass the cat
command so I can debug the program correctly?
I suspect I need to edit launch.json
?
{
"name": "Python: Current File (Integrated Terminal)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},