Update gdb config

This commit is contained in:
Shockwave 2025-08-02 10:40:36 +08:00
parent eabc79b7d2
commit 644e1aa05d
3 changed files with 23 additions and 0 deletions

View File

@ -239,4 +239,8 @@ create table employee (
update_at timestamptz not null default current_timestamp,
primary key (id)
);
insert into employee (name)
values
('Jim');
```

18
config/gdb/gdbinit Normal file
View File

@ -0,0 +1,18 @@
set debuginfod enabled on
# 保存历史命令
set history filename ~/.gdb_history
set history save on
# 退出时不显示提示信息
set confirm off
# 按照派生类型打印对象
set print object on
# 打印数组的索引下标
set print array-indexes on
# 每行打印一个结构体成员
set print pretty on

View File

@ -206,6 +206,7 @@ local-postgres = postgresql://postgres@127.0.0.1:5432
local = postgresql://admin:gsEoWPxkWqHQMk3sK*2J@127.0.0.1:5432/test
pg14-master = postgresql://ezio@127.0.0.1:5532/postgres
pg14-replica = postgresql://ezio@127.0.0.1:5533/postgres
pg16-master = postgresql://postgres@127.0.0.1:5532/postgres
# Format for number representation
# for decimal "d" - 12345678, ",d" - 12,345,678