rk3588使用vscode远程debug 配置文件

进入调试口,需要本地和远程都装C/C++ estension

下面是在调mpi_enc_test的launch.json

文件自己make生成的 makefile 没改过

args项是输入参数,配置了相机输入,具体参数看他的demo说明,

记录一下,方便以后拷贝方便

json 复制代码
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) 启动",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/test/mpi_enc_test",
            "args": [ "-i", "/dev/video0", "-f", "8", "-w", "1280", "-h", "720", "-o", "o1.h264", "-t", "7", "-n", "120"],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "为 gdb 启用整齐打印",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "将反汇编风格设置为 Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ],
            // "preLaunchTask":"Build",
            "miDebuggerPath": "/usr/local/bin/gdb"
        }
    ]
} 
相关推荐
在天愿作比翼鸟在地愿为连理枝11 小时前
宿主机使用VScode连接本地虚拟机
ide·vscode·编辑器
郑板桥3012 小时前
如何自定义一个MCP服务器:从零到一的完整指南
前端·vscode
一只大头猿13 小时前
myeclipse-ci-2018安装教程
ide·ci/cd·myeclipse
MounRiver_Studio13 小时前
RISC-V IDE MRS2使用笔记(三):编译后函数调用分析
ide·笔记·risc-v
MounRiver_Studio13 小时前
RISC-V IDE MRS2使用笔记(二): 编译后Memory分析
ide·笔记·单片机·嵌入式·risc-v
黑夜路人13 小时前
Cursor中rules配置参考-202504版(含前后端Golang/TypeScript/Kotlin等)
ide·vscode·ai·golang
还下着雨ZG14 小时前
VC6.0:Window平台专属的C/C++集成开发环境(IDE)
c语言·c++·ide
徐小夕@趣谈前端14 小时前
JitWord协同文档编辑器最新更新:打造企业级协同知识库
编辑器
逸Y 仙X15 小时前
Java时间类型入门到实战
java·ide·spring·tomcat