gpt4 book ai didi

objective-c - 在 Xcode 变量 View 中更改变量描述

转载 作者:搜寻专家 更新时间:2023-10-31 22:10:56 24 4
gpt4 key购买 nike

我想知道是否可以更改 Xcode 调试器中变量的描述,例如: Xcode Debugger

我想根据对象本身更改红色框中的文本。 NSArray 具有@“10 个元素”的描述。

最佳答案

来自 Xcode 帮助:

To edit the summary format of a variable, Control-click the variable and choose Edit Summary Format… from the shortcut menu.

In the popover, enter a valid LLDB expression and click Done. This expression overrides the default formatter and is used to create a summary for all variables of this type.

关于objective-c - 在 Xcode 变量 View 中更改变量描述,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45767475/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com