小编SFe*_*eng的帖子

检查lldb中函数的返回值

是否可以在lldb中检查函数的返回值,假设返回值未分配给变量?

debugging return-value lldb

21
推荐指数
2
解决办法
4195
查看次数

如何在XCode5中的函数文档参数描述中创建换行符?

我读过这个问题What are the new documentation commands available in Xcode 5?.而且我已经倾斜了\n: doesn't generate a newline. One way to create a newline is by making sure nothing is on that line. Not even a single space character!.但这只能在功能描述部分工作,而不能在参数说明部分工作.

我的问题是如何实现Apple的文档效果,如下所示:

在此输入图像描述

先感谢您!

xcode objective-c ios

5
推荐指数
1
解决办法
215
查看次数

如何使用expr命令在XCode中使用LLVM进行调试时更改NSURL变量值?

在Xcode中,LLDB可以在调试时通过expr命令更改变量值(请参阅在XCode中使用LLVM进行调试时如何更改变量值?).我使用此方法成功更改字符串值,但是当我将NSURL变量更改为新实例时,出现错误:

(lldb) expr url = [NSURL URLWithString:@"www.example.com"];
error: no known method '+URLWithString:'; cast the message send to the method's return type
error: 1 errors parsing expression
Run Code Online (Sandbox Code Playgroud)

我怎样才能将网址更改为新值?谢谢.

ios lldb

2
推荐指数
1
解决办法
1179
查看次数

标签 统计

ios ×2

lldb ×2

debugging ×1

objective-c ×1

return-value ×1

xcode ×1