VSCode 在.vscode/launch.json中设置启动时的参数

 

如下脚本设置启动参数,如题,在.vscode/launch.json文件中,红色部分设置运行参数

{
    // 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 (Integrated Terminal)",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "args": [
                "--config",
                "configs/example.json"
            ]
        },
.....

 

转载于:https://www.cnblogs.com/xbit/p/10060817.html

你可能感兴趣的:(VSCode 在.vscode/launch.json中设置启动时的参数)