


py file and run it nicely with the shortcut Ctrl + Shift + B.

Quote from the documentation: args - arguments passed to the program to debug. I also noticed that if you run the script by clicking on the debug button that looks like this, then the arguments are not passed. The argument with spaces is wrapped in quotation marks and passed as one whole argument. Just put them into the args list one by one in sequence: 'args': '-key1', 'value1', 'value2', '-key2', 'value3', 'value4' Solution 2. Edit this file and add the args in this key-pair format AND add multiple for different args including Variable Substitution! "] (filename) Online Compiler Right click on your project. Arguments can only be passed as an array, but not as a string with spaces. In the DEBUG pane, either click the Config button circled in red above or click the blue link "create launch.json file":Ĭlick it and it creates a launch.json file with debugging configurations. However, it supports two or more configurations, and they appear in the left-hand menu/pane's drop down list (instead of "No Configurations"). Visual Studio Code only supports one launch.json file. We can also define the default parameters in the function definition itself.
