使用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"
            ]
        }
    ]
}

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


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

相关推荐
fenghx2583 小时前
仅用于个人记录:火狐有网,Vscode的codex连不上
vscode·编辑器
LL3436383 小时前
2026最新5款AI编程工具平替实测|终端与IDE vibe coding迭代优缺点深度对比
ide·ai编程
HhzZzzzz_3 小时前
萨科微slkor2026年7月6日“每日芯闻”。国际芯闻:
人工智能·智能手机·编辑器
00后程序员张3 小时前
iOS 打包方式汇总 从 Xcode Archive 到轻量级工具链的 IPA 构建
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
Balabala噗4 小时前
VScode接入MiniMax流程
ide·vscode·编辑器
诚信定制8391 天前
Typora:一款优雅的跨平台 Markdown 编辑器
编辑器
渣渣盟1 天前
Linux软件管理与编辑器命令速查手册
linux·运维·编辑器
Tian_Hang2 天前
Eclipse Ditto 的权限策略
java·服务器·前端·网络·ide·ubuntu·eclipse
Tian_Hang2 天前
Eclipse Mosquitto 安装及介绍
java·运维·服务器·ide·sql·mysql·eclipse
星云_byto2 天前
五分钟从零配置好VSCode + Claude Code + DeepSeek V4 Pro
ide·vscode·编辑器·cursor·codex·claude code·deepseekv4