Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is .gdbinit is located and how can I edit it?

Tags:

xcode

ios

iphone

I am having a exception crash issue and I am trying to edit this file to get more info about the crash.

Where is .gdbinit is located and how can I edit it?

like image 940
saman01 Avatar asked Mar 05 '12 20:03

saman01


3 Answers

You can also put .gdbinit in your debugging folder, this makes more applicable for debugging different apps. GDB will automatically load ./.gdbinit for current debugging.

like image 112
coanor Avatar answered Nov 02 '22 02:11

coanor


You need to create a new file called .gdbinit - put it in your home directory. Now every time gdb starts it will execute the commands in this file. ".gdbinit" is a file you can drop in your home directory that gdb will parse when gdb launches, either from the command line or from within Xcode.

like image 23
Panshul Avatar answered Nov 02 '22 02:11

Panshul


You can do

nano ~/.gdbinit

modify your file and save it. Verify the changes with cat ~/.gdbinit

like image 4
willis Avatar answered Nov 02 '22 01:11

willis