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

前端 未结 6 477
暖寄归人
暖寄归人 2021-01-02 05:34

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. How

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-02 06:31

    I had a similar problem. It turned out, that I had a syntax error in my .lldbinit file which leads to lldb silently ignoring the file. You can try manually loading the file with

    command source ~/.lldbinit
    

    which will show syntax errors.

提交回复
热议问题