What do I need to put in this file in order to run my program. From the command line normally I navigate to the folder (as my test file is there too) and type:
python main.py test_file.xlsx
So my python script is called main.py and I am sending an excel file as an argument. I can't work out what you are supposed to put in the launch.json file to get it to work I found the args bit from another post, but I have no idea if I have done it correctly as vscode is objecting to its own default launch file comment?:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"args"
"console": "integratedTerminal"
}
]
}
Completely lost with this, why is there not some documentation around this?
"args"bit. Right now you just have the key with no value and no comma between it and"console"