I am trying to debug a python file in VSC run from Anaconda, but the launch.json file is ignored and I am not sure how to pass Args to the file being debugged. Can anyone point me in the right direction please ??
Hi! Let me see if I can help. I have found it useful to set the console to integratedTerminal in the launch.json
It is curious that the launch.json file is ignored. Can you share your config files?
{
// 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": ".vscode\\test.py",
"console": "integratedTerminal",
"args":["--json", ".\\conf\\bot_conf.json"]
}
]
}
Even hard coding the python file does not work. For some reason VSC is ignoring the launch.json file when it is run from Anaconda 3