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

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


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

相关推荐
0wioiw018 小时前
Onesignal(Xcode)
ide·macos·xcode
小乔的编程内容分享站21 小时前
记录使用VSCode调试含scanf()的C语言程序出现的两个问题
c语言·开发语言·笔记·vscode
zzh_my1 天前
Visual Studio 2022介绍
ide·visual studio
esmap1 天前
技术深度解析:ESMap引擎VS主流数字孪生竞品
人工智能·物联网·3d·编辑器·智慧城市·webgl
mancy_1212121 天前
复古C语言代码复活!——以121+hello.c为例摘要
c语言·vscode·gitee·visual studio·新人首发·turbo c
星辰引路-Lefan1 天前
Antigravity 登录问题及解决方案:Antigravity Tools 账号管理工具详解
ide·ai编程·gemini·antigravity
*小海豚*1 天前
springcloud项目运行启动类无法启动,IDEA也没有任何提示
java·ide
claider1 天前
Vim User Manual 阅读笔记 usr_22.txt Finding the file to edit 多文件编辑浏览
笔记·编辑器·vim
qq_397562311 天前
使用vscode , 开发keil单片机工程 . (为了使用ai助手)
ide·vscode·编辑器
于慨1 天前
nuxt4项目安装依赖报错
vscode