开发者

How to inspect a variable in XCODE?

开发者_如何学C

Is there any command using which we can inspect a object in command line while app is running in DEBUG mode. I do not want to put description message in the code.


Try these resources. one two

(gdb) p varName


Yes sure. If you are debuging, breakpoints are automatically set to on. Just set a breakpoint to the line in which the variable is. The program stops as soon it reaches the line with the breakpoint. Just hold the cursor over the variable and all important data is displayed. I do it also that way all the time. ;-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜