如下脚本设置启动参数,如题,在.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"
            ]
        },
.....

 

相关文章:

  • 2022-12-23
  • 2023-04-10
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2023-04-11
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案