openGauss配置vscode编译调试环境

如何编译和安装openGauss请参考官方文档。

生成任务文件tasks.json

javascript 复制代码
{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "shell",
			"label": "C/C++: g++ 生成活动文件",
			"command": "make -sj && make install -sj",
			"options": {
				"cwd": "${workspaceFolder}"
			},
			"problemMatcher": [
				"$gcc"
			],
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"detail": "编译器: /home/gauss/binarylibs/buildtools/gcc7.3//gcc/bin/g++"
		}
	]
}

运行任务文件launch.json

javascript 复制代码
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) 启动",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/dest/bin/gaussdb",
            "args": ["-D", "${workspaceFolder}/dest/data", "--single_node"],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "为 gdb 启用整齐打印",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "text": "handle SIGUSR1 noprint nostop",
                    "ignoreFailures": true
                },
                {
                    "text": "handle SIGUSR2 noprint nostop",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}
相关推荐
2501_915909065 天前
移动端开发工具链怎么组合比较好,iOS、Android、跨端三套配置方案
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
weixin_464078075 天前
ppt转为draw.io方法
编辑器
sunoo-2295 天前
【ARM嵌入式学习笔记Day6】一文打通i.MX6ULL时钟体系:PLL/PFD/预分频+滞回比较器全解析
arm开发·笔记·vscode·单片机·imx6ull·汇编语言
明天…ling5 天前
gitee与vscode远程连接
vscode·gitee
2501_915918415 天前
iOS编程用什么软件好?主流工具Xcode、AppCode、CodeRunner与新兴快蝎对比
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
__pop_6 天前
VSCode Remote SSH 远程连接 glibc 高版本依赖问题
vscode
daxiangxm6 天前
【趣味休息】“围住小猫在线玩”-“困住小猫”,又回来了
数据结构·人工智能·vscode·github·php
星光开发者6 天前
基于Spring Boot的充电桩管理系统的设计与实现-计算机毕设【课程设计】57105
vue.js·spring boot·vscode·mysql·django·php·express
程序员允诺6 天前
内网/无网环境必备:VS Code Remote-SSH 离线包下载与手动部署教程
vscode
滕州市燕猫虎计算机科技工作室个体工商户6 天前
IDEA:Command line is too long
java·ide·intellij-idea