I have a script that accepts multiple arguments and takes a file input(stdin) as one of the last argument. Tried debugging the script in VS Code debugger. But the file input arg is not working. The script doesn't understand the fourth argument in the launch.json. here's what I have in my launch.json file:
{
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"args": [
"arg1",
"arg2",
"arg3",
"''",
"<",
"Path/to/file/test.json"
]
}
]
}
I basically put the arguments the same way as I run in the console which is this-
python main.py arg1 arg2 arg3 '' < Path/to/file/test.json
Is there a different way vscode debugger takes an argument?