duckDB源码GDB调试
一,首先编译源代码,使用debug模式
在根目录下
make debug
cd ./build/debug/test
二,gdb调试unittest
gdb ./unittest
三,打断点
b dictionary_compression.cpp:621
四,执行unittest
run test/sql/storage/compression/compression_selection.test
| 缩写 | 全称 | 含义 | 
|---|---|---|
| b | break | 打断点 | 
| c | continue | 执行程序到下一个断点 | 
| s | step | 跳入函数体内部的单步运行 | 
| n | next | 不跳入函数体内部的单步运行 | 
| d | delete | 删除断点 | 
| disable | 禁用断点,但不删除 | |
| enable | 重新启用断点 |