I am new in visual studio code configuration settings. When I try to use vs code to debug python with arguments, I select Start Debugging and Python Debugger:Current File with Arguments. The quotes are not added to the interpreter path and fail to launch.
As you can see in the attached picture, quotes are added to the interpreter path if Python Debugger: Python file is selected for Start Debugging.
launch.json file is created by vs code automatically. I have no idea how to solve this problem. Any suggestion to solve it?
"version": "0.2.0", "configurations": [ { "name": "Python Debugger: Current File with Arguments", "type": "debugpy", "request": "launch", "program": "${file}", "console": "integratedTerminal", "args": "${command:pickArgs}" } ]
I am new in visual studio code configuration settings. When I try to use vs code to debug python with arguments, I select Start Debugging and Python Debugger:Current File with Arguments. The quotes are not added to the interpreter path and fail to launch.
As you can see in the attached picture, quotes are added to the interpreter path if Python Debugger: Python file is selected for Start Debugging.
launch.json file is created by vs code automatically. I have no idea how to solve this problem. Any suggestion to solve it?
"version": "0.2.0", "configurations": [ { "name": "Python Debugger: Current File with Arguments", "type": "debugpy", "request": "launch", "program": "${file}", "console": "integratedTerminal", "args": "${command:pickArgs}" } ]
- Looks like this is a known issue. Here is git hub link for this issue github/microsoft/vscode-python-debugger/issues/233 I don't see solution from the link. – huangjj Commented Mar 11 at 5:58
1 Answer
Reset to default 1Use
"args": [
"${command:pickArgs}"
],
"configurations": [
{
"name": "Python Debugger: Current File with Arguments",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"args": [
"${command:pickArgs}"
]
}