Tag: 别名

我不能得到这个简单的LLDB别名工作

我想创build一个LLDB别名ps,这样的 ps foo 变 print [self foo] 我一直在观看LLDB讨论(在iTunes上的WWDC会话321),基于此,看起来应该是这样的别名: command alias ps print [ self %1 ] 但它不起作用。 在这里,我已经给我的应用程序委托一个简单的“计数”方法返回一个整数: (lldb) command alias ps print [ self %1 ] (lldb) ps count error: invalid operands to binary expression ('AppDelegate *' and 'int') error: 1 errors parsing expression (lldb) print [ self count ] (int) $6 = 2 […]