Alex Rivera | Logout

LLDB does not appear to be reading my .lldbinit file on startup

Asked 2011-10-07T15:52:05.007
14

I have a file ~/.lldbinit with a single alias:

command alias pi print (int)

But when I run my app from Xcode, the alias does not work. However, if I manually enter the alias, then the alias does work:

(lldb) pi 6
error: 'pi' is not a valid command.
(lldb) command alias pi print (int)
(lldb) pi 6
(int) $3 = 6
(lldb) 

This leads me to suspect that my .lldbinit file is not getting read. Or is there a different problem that I am missing? Can anyone help?

Edit
Report

1 Answer

9

Make the file executable:

chmod +x ~/.lldbinit
answered 2013-01-17T17:41:52.717

Your Answer