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

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

python 复制代码
{
    // 使用 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"
            ]
        }
    ]
}

对配置文件进行如下配置:


注意:相关的文件参数要设置绝对路径

相关推荐
我待_JAVA_如初恋10 小时前
idea创建MavenJavaWeb项目以后,包结构缺java
java·ide·intellij-idea
言之。13 小时前
Claude Code IDE 集成工作原理详解
ide·人工智能
悠悠子衿1213814 小时前
Claude+VSCODE配置git导致频繁弹出git bash 的CMO窗口解决方法
ide·git·vscode
大志哥12314 小时前
IntelliJ IDEA父子工程中导入公网远程备份项目到新目录
java·ide·intellij-idea
梁萌14 小时前
idea使用AI插件(CodeGeeX)
java·ide·ai·intellij-idea·插件·codegeex
wqfhenanxc16 小时前
vscode/cursor 远程Linux基础命令
linux·ide·vscode
Lv117700816 小时前
Visual Studio中的常量和只读变量
ide·笔记·c#·visual studio
Balding Curry17 小时前
vscode快速添加插件的3种方式
ide·vscode·编辑器
yyovoll17 小时前
循环知识点介绍 -蓝桥杯
jvm·ide·java-ee
Clarence Liu18 小时前
MacOS 在Trae IDE中构建现代C++开发环境:从新手到高效的完整指南
c++·ide·macos