启动时,LLDB似乎并没有读取我的.lldbinit文件 [英] LLDB does not appear to be reading my .lldbinit file on startup

查看:469
本文介绍了启动时,LLDB似乎并没有读取我的.lldbinit文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件〜/ .lldbinit与一个别名:

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

command alias pi print (int)

但是当我从Xcode运行我的应用程序时,别名不起作用。但是,如果我手动输入别名,则别名可以正常工作:

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) 

这导致我怀疑我的.lldbinit文件没有被阅读。还是有一个我错过的不同的问题?可以帮助吗?

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?

推荐答案

请注意,〜/ .lldbinit在Xcode 4.3.2,iOS中有效。

Note that ~/.lldbinit does work in Xcode 4.3.2, iOS.

这篇关于启动时,LLDB似乎并没有读取我的.lldbinit文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆