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

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


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

相关推荐
zhangfeng113316 小时前
WebIDE 容器中 AtomCode 报 `ATOMCODE_SIG_STALE` 排查实录:一次由 8 小时时钟偏差引发的“悬案”
编辑器·ai编程·atomcode
witton17 小时前
MacOS中在目录或者文件右键菜单中添加“使用VSCode打开”
vscode·macos·文件·目录·服务·automator·右键菜单
wabil18 小时前
[AI-Talk] codx制作xmind文件技巧
ide·ai编程·myeclipse·xmind
大衛說1 天前
02 · 环境搭建:uv 包管理与现代 IDE
ide·uv
山峰哥1 天前
数据库工程与查询优化案例深度复盘‌
数据库·sql·oracle·编辑器·深度优先·宽度优先
cndes1 天前
安装Miniconda+Jupyter notebook
ide·python·jupyter
码上暴富2 天前
Cursor / VS Code 自定义文件颜色
前端·vscode
洛兮银儿2 天前
pycharm选中同一个词的标记颜色的修改
ide·python·pycharm
2601_962381582 天前
VSCode如何配置LlamaIndex RAG(检索增强生成)应用开发环境
vscode·开发环境·rag·llamaindex·检索增强生成
javgo.cn2 天前
Markweave:开源 Markdown-first WYSIWYG 编辑器
开源·编辑器