使用vscode传入参数的方式进行debug

使用vscode传入参数的方式进行debug

{
   
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
   
            "name": "Python 调试程序: 当前文件",
            "type": "debugpy",
            "request"        : "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "args": [
                "--backbone",
                "MobileFaceNet",
                "--detector",
                "Retinaface"
            ]
        }
    ]
}

在这里插入图片描述

对配置文件进行如下配置:
在这里插入图片描述

在这里插入图片描述
注意:相关的文件参数要设置绝对路径

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-19 07:14:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-19 07:14:01       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-19 07:14:01       82 阅读
  4. Python语言-面向对象

    2024-02-19 07:14:01       91 阅读

热门阅读

  1. c++内存的四大分区详解

    2024-02-19 07:14:01       35 阅读
  2. Linux shell 命令中nohup 、&、重定向的使用

    2024-02-19 07:14:01       50 阅读
  3. aspose-words按需求导出图像

    2024-02-19 07:14:01       45 阅读
  4. 入门Docker:构建你的第一个Python爬虫容器

    2024-02-19 07:14:01       53 阅读
  5. Tomcat多实例配置与应用的深入讲解

    2024-02-19 07:14:01       51 阅读
  6. springboot整合RabbitMQ

    2024-02-19 07:14:01       49 阅读
  7. 【笔记】Android MTU 知识及常见问题

    2024-02-19 07:14:01       59 阅读
  8. windows_tcp简单代码

    2024-02-19 07:14:01       48 阅读
  9. 小程序API能力汇总——基础容器API(三)

    2024-02-19 07:14:01       56 阅读