Having an issue working in VSCode (Version: 1.90.0) using Python 3.12.2 on Mac. Program (below) runs just fine from the terminal:
Program
import sys
print (len(sys.argv))
print (sys.argv)
if len(sys.argv) < 3:
print("specify <sheet-name> <operation> where operation is 'create', 'insert', show' or 'delete'")
sys.exit(1)
print("argument list:", str(sys.argv))
sheetname = sys.argv[1]
operation = sys.argv[2]
From terminal
petermelo@Peters-MacBook-Pro Code % python3 -V
Python 3.12.2
petermelo@Peters-MacBook-Pro Code % python3 Test3.py
1
['Test3.py']
specify <sheet-name> <operation> where operation is 'create', 'insert', show' or 'delete'
petermelo@Peters-MacBook-Pro Code %
However, when I try to debug it from VSCode I get the following:
This is the config for launch.json im using:
`{
// 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 Debugger: Current File (Integrated Terminal)",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
Having an issue working in VSCode (Version: 1.90.0) using Python 3.12.2 on Mac. Program (below) runs just fine from the terminal:
Program
From terminal
However, when I try to debug it from VSCode I get the following:![Image 6-8-24 at 10 19 AM](https://github.com/microsoft/vscode-python-debugger/assets/162541639/2d84e740-c47c-4a71-9ef0-9b488351278c)
This is the config for launch.json im using:
`{
}`