DuckDB 源码配置
DuckDB 源码配置
源码编译
sudo apt-get update && sudo apt-get install -y git g++ cmake ninja-build libssl-dev
git clone git@github.com:duckdb/duckdb.git
cd duckdb
make debug/release
issue
当我们编译 debug 版本的时候可能会出现如下图所示的问题:
vscode 调试配置
到源码下的 examples/embedded-c++ 文件夹,修改 CMakeLists.txt 文件
添加第 7 行和 第 9 行代码,用于添加调试信息。
cmake .
make -j
launch.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) start",
"type": "cppdbg",
"request": "launch",
"program":"${workspaceFolder}/examples/embedded-c++/example",
"args": [],
"stopAtEntry": false,
"cwd":"${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode":"gdb",
"setupCommands":[
{
"description":"为gdb 启用整齐打印",
"text":"-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)