如何在gdb中保存设置? [英] 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 :/
我在谷歌和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中保存设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文