As I spend too much time looking for this on the internet, I am posting an example launch.json for future reference:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"module": "src.module_name",
"console": "integratedTerminal",
"justMyCode": true,
"args": [
"--arg1", "value1"
]
}
]
}
Replace the module path after “module” and the arguments in the “args” block with more suitable values.