Found a total of 1 related content
Debugging Python programs that require command line arguments in VSCode
Article Introduction:In VSCode, if the Python program to be debugged needs to pass arguments through the command line, it must be debugged through the launch.json file. You can click the ∨ (Execute or Detect...) button to select the Python error tool: Use launch.json for debugging:
Then select Python Debugger:
Then select the Python file with arguments, and it will automatically create a launch.json file for you that requires input arguments:
After creating the file, it will start the debugger, and first it will ask you to enter the command line arguments:
If you look in File Explorer, you will see that it was created automatically
2024-09-19
comment 0
1020