How to save settings in gdb?(如何在 gdb 中保存设置?)
问题描述
有谁知道如何保存 gdb 设置(例如set print pretty on"或set print elements 0",都来自 这里)?我不想每次使用 gdb 时都设置我的配置:/
Does anyone know how to save gdb settings (like "set print pretty on" or "set print elements 0", both from here)? I don't want to set my configuration every time that I will use gdb :/
我在 google 和 SO 中搜索过,但一无所获.
I searched in google and SO, but I found nothing.
推荐答案
在您的主目录的 .gdbinit 文件中添加您想要自动运行的任何命令.
Add any commands you want to auto run in the .gdbinit file in your home directory.
这篇关于如何在 gdb 中保存设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 gdb 中保存设置?


- 如何提取 __VA_ARGS__? 2022-01-01
- 哪个更快:if (bool) 或 if(int)? 2022-01-01
- GDB 不显示函数名 2022-01-01
- DoEvents 等效于 C++? 2021-01-01
- 使用 __stdcall & 调用 DLLVS2013 中的 GetProcAddress() 2021-01-01
- XML Schema 到 C++ 类 2022-01-01
- 从父 CMakeLists.txt 覆盖 CMake 中的默认选项(...)值 2021-01-01
- OpenGL 对象的 RAII 包装器 2021-01-01
- 将 hdc 内容复制到位图 2022-09-04
- 将函数的返回值分配给引用 C++? 2022-01-01