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

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


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

相关推荐
No8g攻城狮2 小时前
【Linux】Linux nano 编辑器全攻略:从入门到精通
linux·运维·编辑器·nano
刘恒1234567893 小时前
VSCODE
vscode
code bean6 小时前
Visual Studio 2026 离线安装包制作指南
ide·visual studio
你怎么知道我是队长10 小时前
VsCode插件推荐---Todo Tree
ide·vscode·编辑器
becatjd10 小时前
VScode的claude code插件报错command ‘claude-vscode.editor.openLast‘ not found
ide·vscode·编辑器·claude·anthropic·claude code
BIBI204911 小时前
下载指定历史版本 VSCode 或 VSCode Insider
ide·vscode·编辑器
优秀是不可能的11 小时前
Claude Code VSCode 扩展 Windows 打开出现 “claude-vscode.editor.openLast”
ide·windows·vscode·claude code
ouliten13 小时前
VSCode的C++插件clangd如何搭配cuda使用?
c++·ide·vscode
johnny23313 小时前
编辑器和笔记软件汇总:Typst、Reminds、Memos、Editor、MDX Notes、Jotty
笔记·编辑器
宫瑾14 小时前
vscode未定义标识符报错的解决方法
ide·vscode·编辑器